1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-26 00:08:10 +00:00

bootloader: check both touch_is_detected and touch_read to detect touch

This commit is contained in:
Pavol Rusnak 2018-08-21 17:34:34 +02:00
parent 1695533c8a
commit 3ceb9c42ee
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -241,7 +241,7 @@ main_start:
// delay to detect touch
uint32_t touched = 0;
for (int i = 0; i < 100; i++) {
touched = touch_read();
touched = touch_is_detected() | touch_read();
if (touched) {
break;
}