diff Discovery/Src/tMenuSystem.c @ 139:decb0461302a FlipDisplay

Get version from local memory instead from incoming data
author Ideenmodellierer
date Thu, 28 Feb 2019 19:02:34 +0100
parents cc9c18075e00
children b2a9e9b02df0
line wrap: on
line diff
--- a/Discovery/Src/tMenuSystem.c	Sat Feb 23 21:10:51 2019 +0100
+++ b/Discovery/Src/tMenuSystem.c	Thu Feb 28 19:02:34 2019 +0100
@@ -45,7 +45,6 @@
     RTC_DateTypeDef Sdate;
     RTC_TimeTypeDef Stime;
     const SDiveState * pStateReal = stateRealGetPointer();
-    extern SDataExchangeSlaveToMaster dataIn;
 
     data = settingsGetPointer();
     textPointer = 0;
@@ -73,8 +72,7 @@
     }
 
     // surface mode
-    RTEhigh = dataIn.RTE_VERSION_high;
-    RTElow = dataIn.RTE_VERSION_low;
+    getActualRTEandFONTversion(&RTEhigh,&RTElow,NULL,NULL);
 
     if((RTEhigh == 0xFF) || (RTElow == 0xFF))
     {