comparison Discovery/Src/tInfoLogger.c @ 1034:195bfbdf961d Puls_Integration

Pulse measurement integration: Added function to parse standart GATT pulse service. Added compile switch to remove code from non dev builds.
author Ideenmodellierer
date Thu, 07 Aug 2025 20:18:52 +0200
parents 5f66e44d69f0
children 5b913cdaa9dc
comparison
equal deleted inserted replaced
1033:5f66e44d69f0 1034:195bfbdf961d
94 // lineWriteIndex = 0; 94 // lineWriteIndex = 0;
95 // receivedLinesCount = 0; 95 // receivedLinesCount = 0;
96 // memset(lines,0,sizeof(lines)); 96 // memset(lines,0,sizeof(lines));
97 } 97 }
98 98
99 extern void refresh_Heartbeat(void);
100 void refreshInfo_Logger(GFX_DrawCfgScreen s) 99 void refreshInfo_Logger(GFX_DrawCfgScreen s)
101 { 100 {
102 uint8_t index = 0; 101 uint8_t index = 0;
103 char text[31]; 102 char text[31];
104 uint8_t displayLine = 0; 103 uint8_t displayLine = 0;
153 lineReadIndex = 0; 152 lineReadIndex = 0;
154 } 153 }
155 } 154 }
156 index++; 155 index++;
157 } 156 }
158
159
160 if((time_elapsed_ms(loggerUpdateTime, HAL_GetTick()) > 20000)) 157 if((time_elapsed_ms(loggerUpdateTime, HAL_GetTick()) > 20000))
161 { 158 {
162 set_globalState(previousGlobalState); /* restore state which was active before log data was received */ 159 set_globalState(previousGlobalState); /* restore state which was active before log data was received */
163 } 160 }
164 refresh_Heartbeat();
165 } 161 }
166 162
167 void sendActionToInfoLogger(uint8_t sendAction) 163 void sendActionToInfoLogger(uint8_t sendAction)
168 { 164 {
169 switch(sendAction) 165 switch(sendAction)