Mercurial > public > ostc4
comparison Discovery/Src/tMenuSystem.c @ 1001:21142f4fa968 GasConsumption
Cleanup menu structucture afer menu shift:
Compass and timer have been moved to the new menu => some code cleanup was needed.
| author | Ideenmodellierer |
|---|---|
| date | Mon, 28 Apr 2025 22:53:36 +0200 |
| parents | ac25c35a3c97 |
| children | 158100a84ebd |
comparison
equal
deleted
inserted
replaced
| 1000:c386ae6635e4 | 1001:21142f4fa968 |
|---|---|
| 258 strcpy(&text[textPointer],"\n\r"); | 258 strcpy(&text[textPointer],"\n\r"); |
| 259 textPointer += 2; | 259 textPointer += 2; |
| 260 | 260 |
| 261 return StMSYS; | 261 return StMSYS; |
| 262 } | 262 } |
| 263 void tMSystem_checkLineStatus(void) | 263 |
| 264 { | |
| 265 uint8_t localLineMask = 0; | |
| 266 uint8_t lineMask = getLineMask(StMSYS); | |
| 267 | |
| 268 if(t7_customview_disabled(CVIEW_Timer)) | |
| 269 { | |
| 270 localLineMask |= 1 << 2; | |
| 271 } | |
| 272 if(lineMask != localLineMask) | |
| 273 { | |
| 274 updateMenu(); | |
| 275 } | |
| 276 } | |
| 277 | 264 |
| 278 /* Private functions ---------------------------------------------------------*/ | 265 /* Private functions ---------------------------------------------------------*/ |
