Mercurial > public > ostc4
diff Discovery/Src/t5_gauge.c @ 386:39c147e47c1c MotionDetection
Added key direction awarness to t3, t5 and t6 views:
In case of big font views the handling of motion events were not considered, As results all events caused a menu change in th same direction.
author | ideenmodellierer |
---|---|
date | Mon, 21 Oct 2019 21:16:53 +0200 |
parents | 9da7dd50e2ec |
children | 65c7b009136f |
line wrap: on
line diff
--- a/Discovery/Src/t5_gauge.c Mon Oct 21 18:37:43 2019 +0200 +++ b/Discovery/Src/t5_gauge.c Mon Oct 21 21:16:53 2019 +0200 @@ -285,16 +285,16 @@ } -void t5_change_customview(void) +void t5_change_customview(uint8_t action) { - t3_basics_change_customview(&t5_selection_customview, t5_customviews); + t3_basics_change_customview(&t5_selection_customview, t5_customviews, action); } void t5_refresh_customview(float depth) { - if((t5_selection_customview == CVIEW_sensors) &&(stateUsed->diveSettings.ccrOption == 0)) - t5_change_customview(); + // if((t5_selection_customview == CVIEW_sensors) &&(stateUsed->diveSettings.ccrOption == 0)) + // t5_change_customview(); t3_basics_refresh_customview(depth, t5_selection_customview, &t5screen, &t5c1, &t5c2, DIVEMODE_Gauge); }