From 6bbade318d5f33fba3fb9a2434fd606dbef1231b Mon Sep 17 00:00:00 2001 From: "Ben V. Brown" Date: Fri, 7 Jul 2017 19:29:15 +1000 Subject: [PATCH] Fix default settings for displaymode to fast --- workspace/ts100/src/Modes.c | 11 ++++++++--- workspace/ts100/src/Settings.c | 3 ++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/workspace/ts100/src/Modes.c b/workspace/ts100/src/Modes.c index 944effa598..1ffd3189fe 100644 --- a/workspace/ts100/src/Modes.c +++ b/workspace/ts100/src/Modes.c @@ -315,11 +315,16 @@ void DrawUI() { case SOLDERING: //The user is soldering { + if (systemSettings.displayUpdateMode == DISPLAYMODE_SLOW + && (millis() - lastSolderingDrawTime < 1000)) + return; + if (systemSettings.displayUpdateMode == DISPLAYMODE_FAST - || (systemSettings.displayUpdateMode == DISPLAYMODE_SLOW - && (millis() - lastSolderingDrawTime > 1000))) { + || systemSettings.displayUpdateMode == DISPLAYMODE_SLOW) { drawTemp(temp, 0); - } else if (systemSettings.displayUpdateMode == DISPLAYMODE_ROUND) { + lastSolderingDrawTime = millis(); + } + if (systemSettings.displayUpdateMode == DISPLAYMODE_ROUND) { drawTemp((temp / 100) * 100, 0); } else if (systemSettings.displayUpdateMode == DISPLAYMODE_NONE) { diff --git a/workspace/ts100/src/Settings.c b/workspace/ts100/src/Settings.c index e24601dabe..d25dde959d 100644 --- a/workspace/ts100/src/Settings.c +++ b/workspace/ts100/src/Settings.c @@ -52,6 +52,7 @@ void resetSettings() { systemSettings.sensitivity=0x00; //Default high sensitivity systemSettings.tempCalibration=239; //Default to their calibration value systemSettings.voltageDiv=144; //Default divider from schematic - systemSettings.ShutdownTime=30; + systemSettings.ShutdownTime=30; //How many minutes until the unit turns itself off + systemSettings.displayUpdateMode=0; //How fast the LCD updates }