Mercurial > public > ostc4
comparison Discovery/Src/tMenuCustom.c @ 951:e9c37071933b Evo_2_23
Added vibration warning:
The internal buzzer of the GPIO_V2 may now be used as additional warning notificator. It can be activated using the check button in the customer view menu. The vibration will be active while the warning message is displayed in the dive window. In case the diver is in the menu then the warning will be active for a shorter duration.
author | Ideenmodellierer |
---|---|
date | Sun, 29 Dec 2024 18:29:56 +0100 |
parents | 4a6bffaa38b3 |
children |
comparison
equal
deleted
inserted
replaced
950:922ee3d7d2f3 | 951:e9c37071933b |
---|---|
116 } | 116 } |
117 | 117 |
118 strcpy(&text[textPointer],"\n\r"); | 118 strcpy(&text[textPointer],"\n\r"); |
119 textPointer += 2; | 119 textPointer += 2; |
120 #endif | 120 #endif |
121 | |
122 #ifdef ENABLE_GPIO_V2 | |
123 if((line == 0) || (line == 5)) | |
124 { | |
125 /* MotionCtrl */ | |
126 text[textPointer++] = TXT_2BYTE; | |
127 text[textPointer++] = TXT2BYTE_BUZZER; | |
128 text[textPointer++] = ' '; | |
129 text[textPointer++] = TXT_Warning; | |
130 text[textPointer++] = '\t'; | |
131 if(settingsGetPointer()->warningBuzzer) | |
132 text[textPointer++] = '\005'; | |
133 else | |
134 text[textPointer++] = '\006'; | |
135 } | |
136 | |
137 strcpy(&text[textPointer],"\n\r"); | |
138 textPointer += 2; | |
139 #endif | |
140 | |
121 return StMCustom; | 141 return StMCustom; |
122 } | 142 } |
123 | 143 |