Inital work on boost mode

This commit is contained in:
Ben V. Brown
2017-07-08 22:36:49 +10:00
parent 7b4f467eec
commit fa717b2741
5 changed files with 35 additions and 19 deletions

View File

@@ -41,7 +41,7 @@ void ProcessUI() {
break;
case SOLDERING:
//We need to check the buttons if we need to jump out
if (Buttons == BUT_A || Buttons == BUT_B) {
if ((Buttons == BUT_A && !systemSettings.boostModeEnabled)|| Buttons == BUT_B) {
//A or B key pressed so we are moving to temp set
operatingMode = TEMP_ADJ;
} else if (Buttons == (BUT_A | BUT_B)) {
@@ -49,7 +49,12 @@ void ProcessUI() {
//Both buttons were pressed, exit back to the cooling screen
operatingMode = COOLING;
} else {
}
else if (Buttons == BUT_A && systemSettings.boostModeEnabled)
{
}
else {
//We need to check the timer for movement in case we need to goto idle
if (systemSettings.movementEnabled)
if (millis() - getLastMovement()

View File

@@ -53,8 +53,8 @@ void resetSettings() {
systemSettings.tempCalibration=239; //Default to their calibration value
systemSettings.voltageDiv=144; //Default divider from schematic
systemSettings.ShutdownTime=30; //How many minutes until the unit turns itself off
systemSettings.displayUpdateSpeed=0; //How fast the LCD updates
systemSettings.displayUpdateSpeed=1; //How fast the LCD updates
systemSettings.temperatureRounding=0; //How the temperature is rounded off
systemSettings.boostModeEnabled=0;
}