diff options
Diffstat (limited to 'workspace/ts100/src/Modes.c')
-rw-r--r-- | workspace/ts100/src/Modes.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/workspace/ts100/src/Modes.c b/workspace/ts100/src/Modes.c index 944effa5..1ffd3189 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) { |