comparison Discovery/Src/t3.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 7149f372b0ba
children 5a690195b6b7
comparison
equal deleted inserted replaced
995:768ed327ee69 996:8507a87f6401
767 t3_basics_show_customview_warnings(&t3c1); 767 t3_basics_show_customview_warnings(&t3c1);
768 } 768 }
769 else 769 else
770 { 770 {
771 t3_refresh_customview(depth_meter); 771 t3_refresh_customview(depth_meter);
772 requestBuzzerActivation(0); 772 requestBuzzerActivation(REQUEST_BUZZER_OFF);
773 } 773 }
774 if(stateUsed->warnings.lowBattery) 774 if(stateUsed->warnings.lowBattery)
775 t3_basics_battery_low_customview_extra(&t3r1); //t3c1); 775 t3_basics_battery_low_customview_extra(&t3r1); //t3c1);
776 } 776 }
777 777
1685 } 1685 }
1686 if(more) 1686 if(more)
1687 { 1687 {
1688 GFX_write_string(&FontT48,&t3c2,text,0); 1688 GFX_write_string(&FontT48,&t3c2,text,0);
1689 } 1689 }
1690 requestBuzzerActivation(1); 1690 requestBuzzerActivation(REQUEST_BUZZER_CONTINUOUS);
1691 } 1691 }
1692 1692
1693 uint8_t t3_customview_disabled(uint8_t view) 1693 uint8_t t3_customview_disabled(uint8_t view)
1694 { 1694 {
1695 uint8_t i = 0; 1695 uint8_t i = 0;