# HG changeset patch # User Ideenmodellierer # Date 1609792204 -3600 # Node ID 280c11153080d0001866785c91c74a8c638a7419 # Parent 3a6f922b73ea4c3704ebdd82a0827e4ed8721649 Added compile switch for new T3 View Profile diff -r 3a6f922b73ea -r 280c11153080 Discovery/Inc/configuration.h --- a/Discovery/Inc/configuration.h Mon Jan 04 21:24:24 2021 +0100 +++ b/Discovery/Inc/configuration.h Mon Jan 04 21:30:04 2021 +0100 @@ -54,4 +54,9 @@ /* Enable to have option to hide not needed gases from dive views */ /* #define ENABLE_UNUSED_GAS_HIDING */ + +/* Enable to have the new T3 profile view available */ +/* #define ENABLE_T3_PROFILE_VIEW */ + + #endif diff -r 3a6f922b73ea -r 280c11153080 Discovery/Inc/tHome.h --- a/Discovery/Inc/tHome.h Mon Jan 04 21:24:24 2021 +0100 +++ b/Discovery/Inc/tHome.h Mon Jan 04 21:30:04 2021 +0100 @@ -83,6 +83,9 @@ CVIEW_T3_Navigation, CVIEW_T3_DepthData, CVIEW_T3_DecoTTS, +#ifdef ENABLE_T3_PROFILE_VIEW + CVIEW_T3_Profile, +#endif CVIEW_T3_END }; diff -r 3a6f922b73ea -r 280c11153080 Discovery/Src/tHome.c --- a/Discovery/Src/tHome.c Mon Jan 04 21:24:24 2021 +0100 +++ b/Discovery/Src/tHome.c Mon Jan 04 21:30:04 2021 +0100 @@ -59,7 +59,12 @@ static uint16_t tHome_tick_count_o2sens; const uint8_t cv_changelist[] = {CVIEW_Compass, CVIEW_SummaryOfLeftCorner, CVIEW_Tissues, CVIEW_Profile, CVIEW_EADTime, CVIEW_Gaslist, CVIEW_noneOrDebug, CVIEW_Decolist,CVIEW_sensors,CVIEW_sensors_mV, CVIEW_END}; -const uint8_t cv_changelist_BS[] = {CVIEW_T3_Decostop, CVIEW_sensors, CVIEW_Compass, CVIEW_T3_MaxDepth,CVIEW_T3_StopWatch, CVIEW_T3_TTS, CVIEW_T3_GasList, CVIEW_T3_ppO2andGas, CVIEW_noneOrDebug, CVIEW_T3_Navigation, CVIEW_T3_DepthData, CVIEW_T3_DecoTTS, CVIEW_T3_END}; +const uint8_t cv_changelist_BS[] = {CVIEW_T3_Decostop, CVIEW_sensors, CVIEW_Compass, CVIEW_T3_MaxDepth,CVIEW_T3_StopWatch, CVIEW_T3_TTS, CVIEW_T3_GasList, CVIEW_T3_ppO2andGas, CVIEW_noneOrDebug, + CVIEW_T3_Navigation, CVIEW_T3_DepthData, CVIEW_T3_DecoTTS, +#ifdef ENABLE_T3_PROFILE_VIEW + CVIEW_T3_Profile, +#endif + CVIEW_T3_END}; /* Private function prototypes -----------------------------------------------*/ diff -r 3a6f922b73ea -r 280c11153080 Discovery/Src/tInfoLog.c --- a/Discovery/Src/tInfoLog.c Mon Jan 04 21:24:24 2021 +0100 +++ b/Discovery/Src/tInfoLog.c Mon Jan 04 21:30:04 2021 +0100 @@ -38,6 +38,7 @@ #include "unit.h" #include "externLogbookFlash.h" #include "configuration.h" +#include "logbook_miniLive.h" /* Exported variables --------------------------------------------------------*/ @@ -175,9 +176,20 @@ void sendActionToInfoLogShow(uint8_t sendAction) { +#ifdef ENABLE_T3_PROFILE_VIEW + uint8_t stepBack; +#endif switch(sendAction) { case ACTION_BUTTON_ENTER: +#ifdef ENABLE_T3_PROFILE_VIEW + if(getActiveLogPage() == 1) + { + stepBack = (6 * (infolog.page - 1)) + infolog.line - 1; + prepareReplayLog(stepBack); + updateReplayIncdicator(&INFOLOGscreen); + } +#endif break; case ACTION_BUTTON_NEXT: showNextLogPage(); diff -r 3a6f922b73ea -r 280c11153080 Discovery/Src/tMenuEditCustom.c --- a/Discovery/Src/tMenuEditCustom.c Mon Jan 04 21:24:24 2021 +0100 +++ b/Discovery/Src/tMenuEditCustom.c Mon Jan 04 21:30:04 2021 +0100 @@ -402,6 +402,7 @@ text = TXT2BYTE_Tissues; break; case CVIEW_Profile: + case CVIEW_T3_Profile: text = TXT2BYTE_Profile; break; case CVIEW_Gaslist: