From 6b94dcb5eebfa9e23306b6237fa2907a4132f3ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Thu, 4 May 2023 23:14:43 +0200 Subject: [PATCH] show chip overheat if over 70C --- Core/Src/Gui/app_gui.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Core/Src/Gui/app_gui.c b/Core/Src/Gui/app_gui.c index ba7c188..396679f 100644 --- a/Core/Src/Gui/app_gui.c +++ b/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()); 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()) { fb_frame(0, 0, FBW, 11, 1, 1); }