comparison Discovery/Src/t7.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 bad5561c0c59
children 5a690195b6b7
comparison
equal deleted inserted replaced
995:768ed327ee69 996:8507a87f6401
1620 text[textpointer] = 0; 1620 text[textpointer] = 0;
1621 lineFree--; 1621 lineFree--;
1622 } 1622 }
1623 */ 1623 */
1624 GFX_write_string(&FontT48,&t7cW,text,1); 1624 GFX_write_string(&FontT48,&t7cW,text,1);
1625 requestBuzzerActivation(1); 1625 requestBuzzerActivation(REQUEST_BUZZER_CONTINUOUS);
1626 } 1626 }
1627 1627
1628 1628
1629 void t7_set_customview_to_primary(void) 1629 void t7_set_customview_to_primary(void)
1630 { 1630 {
3231 if(customview_warnings && warning_count_high_time) 3231 if(customview_warnings && warning_count_high_time)
3232 t7_show_customview_warnings(); 3232 t7_show_customview_warnings();
3233 else 3233 else
3234 { 3234 {
3235 t7_refresh_customview(); 3235 t7_refresh_customview();
3236 requestBuzzerActivation(0); 3236 requestBuzzerActivation(REQUEST_BUZZER_OFF);
3237 } 3237 }
3238 3238
3239 /* the frame */ 3239 /* the frame */
3240 draw_frame(1,1, CLUT_DIVE_pluginbox, CLUT_DIVE_FieldSeperatorLines); 3240 draw_frame(1,1, CLUT_DIVE_pluginbox, CLUT_DIVE_FieldSeperatorLines);
3241 } 3241 }