mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-26 16:18:22 +00:00
bootloader: check both touch_is_detected and touch_read to detect touch
This commit is contained in:
parent
1695533c8a
commit
3ceb9c42ee
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user