From 3ceb9c42ee37a41bf3376f6cb543091fe87bce36 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Tue, 21 Aug 2018 17:34:34 +0200 Subject: [PATCH] bootloader: check both touch_is_detected and touch_read to detect touch --- embed/bootloader/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embed/bootloader/main.c b/embed/bootloader/main.c index 0499250a4d..2fe664e39d 100644 --- a/embed/bootloader/main.c +++ b/embed/bootloader/main.c @@ -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; }