comparison 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
comparison
equal deleted inserted replaced
138:cc9c18075e00 139:decb0461302a
43 uint8_t dateFormat; 43 uint8_t dateFormat;
44 uint8_t RTEhigh, RTElow; 44 uint8_t RTEhigh, RTElow;
45 RTC_DateTypeDef Sdate; 45 RTC_DateTypeDef Sdate;
46 RTC_TimeTypeDef Stime; 46 RTC_TimeTypeDef Stime;
47 const SDiveState * pStateReal = stateRealGetPointer(); 47 const SDiveState * pStateReal = stateRealGetPointer();
48 extern SDataExchangeSlaveToMaster dataIn;
49 48
50 data = settingsGetPointer(); 49 data = settingsGetPointer();
51 textPointer = 0; 50 textPointer = 0;
52 *tab = 300; 51 *tab = 300;
53 *subtext = 0; 52 *subtext = 0;
71 70
72 return StMSYS; 71 return StMSYS;
73 } 72 }
74 73
75 // surface mode 74 // surface mode
76 RTEhigh = dataIn.RTE_VERSION_high; 75 getActualRTEandFONTversion(&RTEhigh,&RTElow,NULL,NULL);
77 RTElow = dataIn.RTE_VERSION_low;
78 76
79 if((RTEhigh == 0xFF) || (RTElow == 0xFF)) 77 if((RTEhigh == 0xFF) || (RTElow == 0xFF))
80 { 78 {
81 RTEhigh = 0; 79 RTEhigh = 0;
82 RTElow = 0; 80 RTElow = 0;