Mercurial > public > ostc4
comparison Discovery/Src/tMenuHardware.c @ 1005:85f7e19c6688 GasConsumption
Switch menu position of Buzzer and flipdisplay option:
The Buzzer is an HW option while the flipdisplay is a SW function => exchange the position in order to clean up categories.
| author | Ideenmodellierer |
|---|---|
| date | Sat, 03 May 2025 17:47:53 +0200 |
| parents | ac25c35a3c97 |
| children | f8e2895c91e5 |
comparison
equal
deleted
inserted
replaced
| 1004:efb7d18cc564 | 1005:85f7e19c6688 |
|---|---|
| 27 ////////////////////////////////////////////////////////////////////////////// | 27 ////////////////////////////////////////////////////////////////////////////// |
| 28 | 28 |
| 29 /* Includes ------------------------------------------------------------------*/ | 29 /* Includes ------------------------------------------------------------------*/ |
| 30 #include "tMenu.h" | 30 #include "tMenu.h" |
| 31 #include "tMenuHardware.h" | 31 #include "tMenuHardware.h" |
| 32 #include "ostc.h" | |
| 32 | 33 |
| 33 //#define NEXTLINE(text, textPointer) {text[(textPointer)++] = '\n'; text[textPointer++] = '\r'; text[textPointer] = 0;} | 34 //#define NEXTLINE(text, textPointer) {text[(textPointer)++] = '\n'; text[textPointer++] = '\r'; text[textPointer] = 0;} |
| 34 // NEXTLINE(text,textPointer); | 35 // NEXTLINE(text,textPointer); |
| 35 | 36 |
| 36 | 37 |
| 138 "\017", | 139 "\017", |
| 139 button[3]); | 140 button[3]); |
| 140 } | 141 } |
| 141 nextline(text,&textPointer); | 142 nextline(text,&textPointer); |
| 142 | 143 |
| 143 if((line == 0) || (line == 5)) | 144 if((isNewDisplay()) && ((line == 0) || (line == 5))) |
| 144 { | 145 { |
| 145 text[textPointer++] = TXT_2BYTE; | 146 text[textPointer++] = TXT_2BYTE; |
| 146 text[textPointer++] = TXT2BYTE_FLIPDISPLAY; | 147 text[textPointer++] = TXT2BYTE_BUZZER; |
| 147 text[textPointer++] = '\t'; | 148 text[textPointer++] = ' '; |
| 148 if(settingsGetPointer()->FlipDisplay) | 149 text[textPointer++] = TXT_Warning; |
| 149 text[textPointer++] = '\005'; | 150 text[textPointer++] = '\t'; |
| 150 else | 151 if(settingsGetPointer()->warningBuzzer) |
| 151 text[textPointer++] = '\006'; | 152 text[textPointer++] = '\005'; |
| 152 text[textPointer] = 0; | 153 else |
| 153 nextline(text,&textPointer); | 154 text[textPointer++] = '\006'; |
| 154 } | 155 } |
| 156 nextline(text,&textPointer); | |
| 155 | 157 |
| 156 return StMHARD; | 158 return StMHARD; |
| 157 } | 159 } |
