do not delay bootloader
This commit is contained in:
parent
d5c30eca7c
commit
fd9a4fd6b3
@ -56,12 +56,14 @@ static int is_physical_button_pressed()
|
|||||||
static int is_touch_button_pressed()
|
static int is_touch_button_pressed()
|
||||||
{
|
{
|
||||||
int is_pressed = (tsc_read_button(0) || tsc_read_button(1));
|
int is_pressed = (tsc_read_button(0) || tsc_read_button(1));
|
||||||
|
#ifndef IS_BOOTLOADER
|
||||||
if (is_pressed)
|
if (is_pressed)
|
||||||
{
|
{
|
||||||
// delay for debounce, and longer than polling timer period.
|
// delay for debounce, and longer than polling timer period.
|
||||||
delay(95);
|
delay(95);
|
||||||
return (tsc_read_button(0) || tsc_read_button(1));
|
return (tsc_read_button(0) || tsc_read_button(1));
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
return is_pressed;
|
return is_pressed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user