comparison Discovery/Src/t6_apnea.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 2bb1db22b5f5
children 65c7b009136f
comparison
equal deleted inserted replaced
385:0cd862e501f6 386:39c147e47c1c
299 GFX_write_string(&Batt24,&t6c1,TextC1,0); 299 GFX_write_string(&Batt24,&t6c1,TextC1,0);
300 } 300 }
301 301
302 302
303 303
304 void t6_change_customview(void) 304 void t6_change_customview(uint8_t action)
305 { 305 {
306 t3_basics_change_customview(&t6_selection_customview, t6_customviews); 306 t3_basics_change_customview(&t6_selection_customview, t6_customviews, action);
307 } 307 }
308 308
309 309
310 void t6_refresh_customview(float depth) 310 void t6_refresh_customview(float depth)
311 { 311 {
312 uint8_t customViewLeftSide = CVIEW_T3_MaxDepth; 312 uint8_t customViewLeftSide = CVIEW_T3_MaxDepth;
313
314 if((t6_selection_customview == CVIEW_sensors) &&(stateUsed->diveSettings.ccrOption == 0))
315 t6_change_customview();
316 313
317 if(t6_getCustomView() == CVIEW_T3_ApnoeSurfaceInfo) 314 if(t6_getCustomView() == CVIEW_T3_ApnoeSurfaceInfo)
318 customViewLeftSide = CVIEW_T3_ApnoeSurfaceInfo; 315 customViewLeftSide = CVIEW_T3_ApnoeSurfaceInfo;
319 316
320 t3_basics_refresh_customview(depth, customViewLeftSide, &t6screen, &t6c1, &t6c2, DIVEMODE_Apnea); 317 t3_basics_refresh_customview(depth, customViewLeftSide, &t6screen, &t6c1, &t6c2, DIVEMODE_Apnea);