show chip overheat if over 70C

master
Ondřej Hruška 2 years ago
parent 95f597c9ed
commit 6b94dcb5ee
  1. 6
      Core/Src/Gui/app_gui.c

@ -138,6 +138,12 @@ static void draw_common_overlay() {
SPRINTF(stmp, "%5.1f°C →%3d°C", app_temp_read_oven(), (int) app_heater_get_target()); SPRINTF(stmp, "%5.1f°C →%3d°C", app_temp_read_oven(), (int) app_heater_get_target());
fb_text(3, 3, stmp, FONT_3X5, 1); fb_text(3, 3, stmp, FONT_3X5, 1);
float soc = app_temp_read_soc();
if (soc > 70) {
SPRINTF(stmp, "! CHIP %d°C !", (int) soc);
fb_text(3, 14, stmp, FONT_3X5, 1);
}
if (app_heater_get_state()) { if (app_heater_get_state()) {
fb_frame(0, 0, FBW, 11, 1, 1); fb_frame(0, 0, FBW, 11, 1, 1);
} }

Loading…
Cancel
Save