show chip overheat if over 70C
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user