comparison Discovery/Src/data_central.c @ 834:2a8af51ab04d Evo_2_23

Added event based display changes for big font view: It is now possible to activate "Autofocus" option in custom view dialog. This enables automatic switching of the current view depending on current dive situation. Because T7 view already displays a lot of information this feature targets the T3 view.
author Ideenmodellierer
date Sun, 17 Dec 2023 21:14:17 +0100
parents dd7ce655db26
children aed39d19269c
comparison
equal deleted inserted replaced
833:e963d32f746e 834:2a8af51ab04d
70 #include "data_exchange_main.h" 70 #include "data_exchange_main.h"
71 #include "ostc.h" // for button adjust on hw testboard 1 71 #include "ostc.h" // for button adjust on hw testboard 1
72 #include "tCCR.h" 72 #include "tCCR.h"
73 #include "crcmodel.h" 73 #include "crcmodel.h"
74 #include "configuration.h" 74 #include "configuration.h"
75 #include "tHome.h"
76 #include "t3.h"
75 77
76 static SDiveState stateReal = { 0 }; 78 static SDiveState stateReal = { 0 };
77 SDiveState stateSim = { 0 }; 79 SDiveState stateSim = { 0 };
78 SDiveState stateDeco = { 0 }; 80 SDiveState stateDeco = { 0 };
79 81
372 if(stateReal.diveSettings.input_next_stop_increment_depth_bar * i > stateReal.diveSettings.last_stop_depth_bar) 374 if(stateReal.diveSettings.input_next_stop_increment_depth_bar * i > stateReal.diveSettings.last_stop_depth_bar)
373 { 375 {
374 stateReal.diveSettings.input_second_to_last_stop_depth_bar = stateReal.diveSettings.input_next_stop_increment_depth_bar * i; 376 stateReal.diveSettings.input_second_to_last_stop_depth_bar = stateReal.diveSettings.input_next_stop_increment_depth_bar * i;
375 break; 377 break;
376 } 378 }
379 }
380 /* generate Bitfield of active T3 views */
381 stateReal.diveSettings.activeAFViews = 0;
382 if(t3_customview_disabled(CVIEW_T3_Navigation) == 0)
383 {
384 stateReal.diveSettings.activeAFViews |= (1 << CVIEW_T3_Navigation);
377 } 385 }
378 } 386 }
379 387
380 388
381 void copyDiveSettingsToSim(void) 389 void copyDiveSettingsToSim(void)