Mercurial > public > ostc4
comparison Discovery/Src/tMenuEditCustom.c @ 996:8507a87f6401 GasConsumption
Improve buzzer opreation:
In the previous version the buzzer was operated in case warning events. In the new version the buzzer is inactive in surface mode in order to prevent annoying warning just because e.g. the sensors are not connected.
In addition it is now possible to request a short activation only e.g. in case of the activation of the buzzer via the menu.
| author | Ideenmodellierer |
|---|---|
| date | Mon, 21 Apr 2025 21:00:34 +0200 |
| parents | d9290c76b840 |
| children | 85f7e19c6688 |
comparison
equal
deleted
inserted
replaced
| 995:768ed327ee69 | 996:8507a87f6401 |
|---|---|
| 480 SSettings *pSettings = settingsGetPointer(); | 480 SSettings *pSettings = settingsGetPointer(); |
| 481 | 481 |
| 482 if(pSettings->warningBuzzer == 0) | 482 if(pSettings->warningBuzzer == 0) |
| 483 { | 483 { |
| 484 pSettings->warningBuzzer = 1; | 484 pSettings->warningBuzzer = 1; |
| 485 requestBuzzerActivation(1); | 485 requestBuzzerActivation(REQUEST_BUZZER_ONCE); |
| 486 } | 486 } |
| 487 else | 487 else |
| 488 { | 488 { |
| 489 pSettings->warningBuzzer = 0; | 489 pSettings->warningBuzzer = 0; |
| 490 deactivateBuzzer(); | |
| 490 } | 491 } |
| 491 exitMenuEdit_to_Menu_with_Menu_Update_do_not_write_settings_for_this_only(); | 492 exitMenuEdit_to_Menu_with_Menu_Update_do_not_write_settings_for_this_only(); |
| 492 } | 493 } |
| 493 | 494 |
| 494 char customview_TXT2BYTE_helper(uint8_t customViewId) | 495 char customview_TXT2BYTE_helper(uint8_t customViewId) |
