diff options
Diffstat (limited to 'firmware/target/arm')
-rw-r--r-- | firmware/target/arm/tcc780x/cowond2/button-cowond2.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/target/arm/tcc780x/cowond2/button-cowond2.c b/firmware/target/arm/tcc780x/cowond2/button-cowond2.c index 0f9a9b3d75..30d81fa059 100644 --- a/firmware/target/arm/tcc780x/cowond2/button-cowond2.c +++ b/firmware/target/arm/tcc780x/cowond2/button-cowond2.c | |||
@@ -43,6 +43,9 @@ void button_read_touch() | |||
43 | { | 43 | { |
44 | static long last_touch_interrupt = 0; | 44 | static long last_touch_interrupt = 0; |
45 | static int touch_data_index = 0; | 45 | static int touch_data_index = 0; |
46 | |||
47 | /* don't read the coordinates when hold is enabled */ | ||
48 | if (button_hold()) return; | ||
46 | 49 | ||
47 | /* put the touchscreen into idle mode */ | 50 | /* put the touchscreen into idle mode */ |
48 | pcf50606_write(PCF5060X_ADCC1, 0); | 51 | pcf50606_write(PCF5060X_ADCC1, 0); |