comparison Discovery/Src/tHome.c @ 619:8fa2de4414a8

Added t3 quick menu for marker synchronisation: By selecting the "Check" optin of the quickmenu available in the T3_Profile view only, the live profile data may be syncronised with the marker data stored in the log profile. The implementation does not mentain a history storage. In case all markes have been checked the next check will cause the live data to be shown. another check will then map the profile again to the first marker. To support this functionality menu infra structures have been added to the menu handling functions.
author Ideenmodellierer
date Wed, 27 Jan 2021 22:10:11 +0100
parents beeb23d18443
children db2bcd2f6778
comparison
equal deleted inserted replaced
618:96af74455420 619:8fa2de4414a8
41 #include "tMenu.h" 41 #include "tMenu.h"
42 #include "tMenuEditGasOC.h" // for openEdit_DiveSelectBetterGas() 42 #include "tMenuEditGasOC.h" // for openEdit_DiveSelectBetterGas()
43 #include "tMenuEditSetpoint.h" // for openEdit_DiveSelectBetterSetpoint() 43 #include "tMenuEditSetpoint.h" // for openEdit_DiveSelectBetterSetpoint()
44 #include "simulation.h" 44 #include "simulation.h"
45 #include "motion.h" 45 #include "motion.h"
46 #include "logbook_miniLive.h"
46 47
47 /* Private types -------------------------------------------------------------*/ 48 /* Private types -------------------------------------------------------------*/
48 49
49 /* Exported variables --------------------------------------------------------*/ 50 /* Exported variables --------------------------------------------------------*/
50 _Bool warning_count_high_time = 0; 51 _Bool warning_count_high_time = 0;
284 break; 285 break;
285 case StDQUIT: // t6_apnea 286 case StDQUIT: // t6_apnea
286 set_globalState(StD); 287 set_globalState(StD);
287 break; 288 break;
288 289
290 case StDMARK:
291 if((settingsGetPointer()->design == 3) && (MiniLiveLogbook_getNextMarkerIndex(0) != 0))
292 {
293 set_globalState(StDCHECK);
294 }
295 else
296 {
297 set_globalState(StD);
298 }
299 break;
300
289 default: 301 default:
290 set_globalState(StD); 302 set_globalState(StD);
291 } 303 }
292 } 304 }
293 305
346 break; 358 break;
347 case StDMARK: stateUsedWrite->events.manualMarker = 1; 359 case StDMARK: stateUsedWrite->events.manualMarker = 1;
348 set_globalState(StD); 360 set_globalState(StD);
349 break; 361 break;
350 362
363 case StDCHECK: MiniLiveLogbook_checkMarker();
364 break;
351 default: 365 default:
352 break; 366 break;
353 } 367 }
354 } 368 }
355 } 369 }