comparison 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
comparison
equal deleted inserted replaced
385:0cd862e501f6 386:39c147e47c1c
283 // keep empty 283 // keep empty
284 } 284 }
285 } 285 }
286 286
287 287
288 void t5_change_customview(void) 288 void t5_change_customview(uint8_t action)
289 { 289 {
290 t3_basics_change_customview(&t5_selection_customview, t5_customviews); 290 t3_basics_change_customview(&t5_selection_customview, t5_customviews, action);
291 } 291 }
292 292
293 293
294 void t5_refresh_customview(float depth) 294 void t5_refresh_customview(float depth)
295 { 295 {
296 if((t5_selection_customview == CVIEW_sensors) &&(stateUsed->diveSettings.ccrOption == 0)) 296 // if((t5_selection_customview == CVIEW_sensors) &&(stateUsed->diveSettings.ccrOption == 0))
297 t5_change_customview(); 297 // t5_change_customview();
298 298
299 t3_basics_refresh_customview(depth, t5_selection_customview, &t5screen, &t5c1, &t5c2, DIVEMODE_Gauge); 299 t3_basics_refresh_customview(depth, t5_selection_customview, &t5screen, &t5c1, &t5c2, DIVEMODE_Gauge);
300 } 300 }
301 301
302 302