comparison Discovery/Src/tInfoLog.c @ 594:280c11153080

Added compile switch for new T3 View Profile
author Ideenmodellierer
date Mon, 04 Jan 2021 21:30:04 +0100
parents eecb52ab1fce
children b9d4baa4f6fa
comparison
equal deleted inserted replaced
593:3a6f922b73ea 594:280c11153080
36 #include "tInfo.h" 36 #include "tInfo.h"
37 #include "tMenu.h" 37 #include "tMenu.h"
38 #include "unit.h" 38 #include "unit.h"
39 #include "externLogbookFlash.h" 39 #include "externLogbookFlash.h"
40 #include "configuration.h" 40 #include "configuration.h"
41 #include "logbook_miniLive.h"
41 42
42 /* Exported variables --------------------------------------------------------*/ 43 /* Exported variables --------------------------------------------------------*/
43 44
44 /* Private types -------------------------------------------------------------*/ 45 /* Private types -------------------------------------------------------------*/
45 typedef struct 46 typedef struct
173 } 174 }
174 175
175 176
176 void sendActionToInfoLogShow(uint8_t sendAction) 177 void sendActionToInfoLogShow(uint8_t sendAction)
177 { 178 {
179 #ifdef ENABLE_T3_PROFILE_VIEW
180 uint8_t stepBack;
181 #endif
178 switch(sendAction) 182 switch(sendAction)
179 { 183 {
180 case ACTION_BUTTON_ENTER: 184 case ACTION_BUTTON_ENTER:
185 #ifdef ENABLE_T3_PROFILE_VIEW
186 if(getActiveLogPage() == 1)
187 {
188 stepBack = (6 * (infolog.page - 1)) + infolog.line - 1;
189 prepareReplayLog(stepBack);
190 updateReplayIncdicator(&INFOLOGscreen);
191 }
192 #endif
181 break; 193 break;
182 case ACTION_BUTTON_NEXT: 194 case ACTION_BUTTON_NEXT:
183 showNextLogPage(); 195 showNextLogPage();
184 break; 196 break;
185 case ACTION_TIMEOUT: 197 case ACTION_TIMEOUT: