diff 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
line wrap: on
line diff
--- 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();