From c9a56392a03b77b48bdbe13d0354aedb3e912544 Mon Sep 17 00:00:00 2001 From: "Ben V. Brown" Date: Fri, 11 May 2018 13:01:21 +1000 Subject: [PATCH] Bring back cooling blink Fixes #289 --- workspace/TS100/src/main.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/workspace/TS100/src/main.cpp b/workspace/TS100/src/main.cpp index 34960634..19bfbd57 100644 --- a/workspace/TS100/src/main.cpp +++ b/workspace/TS100/src/main.cpp @@ -612,7 +612,7 @@ void startGUITask(void const *argument) { i2cDev.FRToSInit(); uint8_t tempWarningState = 0; bool buttonLockout = false; - + bool tempOnDisplay = false; switch (systemSettings.OrientationMode) { case 0: lcd.setRotation(false); @@ -749,7 +749,11 @@ void startGUITask(void const *argument) { lcd.setCursor(84, 0); gui_drawBatteryIcon(); } - if (tipTemp > 50) { + if (tipTemp > 55) + tempOnDisplay = true; + else if (tipTemp < 45) + tempOnDisplay = false; + if (tempOnDisplay) { //draw temp over the start soldering button //Location changes on screen rotation if (lcd.getRotation()) { @@ -763,7 +767,9 @@ void startGUITask(void const *argument) { } //draw in the temp lcd.setFont(0); //big font - gui_drawTipTemp(false); // draw in the temp + if (!(systemSettings.coolingTempBlink + && (xTaskGetTickCount() % 50 < 25))) + gui_drawTipTemp(false); // draw in the temp } }