Mercurial > public > ostc4
diff 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 |
line wrap: on
line diff
--- a/Discovery/Src/tHome.c Wed Jan 27 22:04:45 2021 +0100 +++ b/Discovery/Src/tHome.c Wed Jan 27 22:10:11 2021 +0100 @@ -43,6 +43,7 @@ #include "tMenuEditSetpoint.h" // for openEdit_DiveSelectBetterSetpoint() #include "simulation.h" #include "motion.h" +#include "logbook_miniLive.h" /* Private types -------------------------------------------------------------*/ @@ -286,6 +287,17 @@ set_globalState(StD); break; + case StDMARK: + if((settingsGetPointer()->design == 3) && (MiniLiveLogbook_getNextMarkerIndex(0) != 0)) + { + set_globalState(StDCHECK); + } + else + { + set_globalState(StD); + } + break; + default: set_globalState(StD); } @@ -348,6 +360,8 @@ set_globalState(StD); break; + case StDCHECK: MiniLiveLogbook_checkMarker(); + break; default: break; }