changeset 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 f6c52eb0e25d
files Discovery/Src/tMenuSystem.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
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))
     {