1
0
forked from me/IronOS

Collapse Boost temp enable into setting

Work for #642
This commit is contained in:
Ben V. Brown
2020-09-06 16:04:41 +10:00
parent feec35be7a
commit 99ba13525a
30 changed files with 53 additions and 260 deletions

View File

@@ -132,14 +132,6 @@
], ],
"desc": "Ориентация на дисплея <A. Автоматично L. Лява Ръка R. Дясна Ръка>" "desc": "Ориентация на дисплея <A. Автоматично L. Лява Ръка R. Дясна Ръка>"
}, },
"BoostEnabled": {
"text": "",
"text2": [
"Турбо режим",
"пуснат"
],
"desc": "Ползвай предния бутон за \"турбо\" режим с температура до 450C при запояване"
},
"BoostTemperature": { "BoostTemperature": {
"text": "", "text": "",
"text2": [ "text2": [

View File

@@ -132,14 +132,6 @@
], ],
"desc": "Orientace obrazovky <A=Auto, L=Levák, P=Pravák>." "desc": "Orientace obrazovky <A=Auto, L=Levák, P=Pravák>."
}, },
"BoostEnabled": {
"text": "",
"text2": [
"Povolit",
"boost"
],
"desc": "Povolit boost podržením předního tlačítka při pájení?"
},
"BoostTemperature": { "BoostTemperature": {
"text": "", "text": "",
"text2": [ "text2": [

View File

@@ -130,14 +130,6 @@
], ],
"desc": "Skærm Orientering <A. Automatisk V. Venstre Håndet H. Højre Håndet" "desc": "Skærm Orientering <A. Automatisk V. Venstre Håndet H. Højre Håndet"
}, },
"BoostEnabled": {
"text": "BOOST",
"text2": [
"",
""
],
"desc": "Ved tryk på front knap Aktiveres boost-funktionen, 450C tilstand når der loddes"
},
"BoostTemperature": { "BoostTemperature": {
"text": "BTMP", "text": "BTMP",
"text2": [ "text2": [

View File

@@ -133,14 +133,6 @@
], ],
"desc": "Ausrichtung der Anzeige <A=Automatisch, L=Linkshändig, R=Rechtshändig>" "desc": "Ausrichtung der Anzeige <A=Automatisch, L=Linkshändig, R=Rechtshändig>"
}, },
"BoostEnabled": {
"text": "BOOST",
"text2": [
"Boosttaste",
"aktiv?"
],
"desc": "Vordere Taste lange drücken für Temperatur-Boostmodus beim Löten"
},
"BoostTemperature": { "BoostTemperature": {
"text": "BTMP", "text": "BTMP",
"text2": [ "text2": [

View File

@@ -133,14 +133,6 @@
], ],
"desc": "Display orientation <A=Automatic L=Left-handed R=Right-handed>" "desc": "Display orientation <A=Automatic L=Left-handed R=Right-handed>"
}, },
"BoostEnabled": {
"text": "BOOST",
"text2": [
"Boost",
"mode"
],
"desc": "Enable front key long press \"boost mode\" when soldering"
},
"BoostTemperature": { "BoostTemperature": {
"text": "BTMP", "text": "BTMP",
"text2": [ "text2": [

View File

@@ -132,14 +132,6 @@
], ],
"desc": "Orientación de la pantalla <A=automático I=zurdo D=diestro>" "desc": "Orientación de la pantalla <A=automático I=zurdo D=diestro>"
}, },
"BoostEnabled": {
"text": "BOOST",
"text2": [
"Con botón de",
"temp. extra"
],
"desc": "Permite mantener pulsado el primer botón (A) al soldar y calentar momentáneamente un poco más."
},
"BoostTemperature": { "BoostTemperature": {
"text": "BTMP", "text": "BTMP",
"text2": [ "text2": [

View File

@@ -130,14 +130,6 @@
], ],
"desc": "Näytön kierto. <A=automaattinen O=oikeakätinen V=vasenkätinen>" "desc": "Näytön kierto. <A=automaattinen O=oikeakätinen V=vasenkätinen>"
}, },
"BoostEnabled": {
"text": "",
"text2": [
"Tehostus",
"käytössä"
],
"desc": "Etupainikeella siirrytään juotettaessa tehostustilaan."
},
"BoostTemperature": { "BoostTemperature": {
"text": "", "text": "",
"text2": [ "text2": [

View File

@@ -130,14 +130,6 @@
], ],
"desc": "Orientation de l'affichage <A=Automatique G=Gaucher D=Droitier>" "desc": "Orientation de l'affichage <A=Automatique G=Gaucher D=Droitier>"
}, },
"BoostEnabled": {
"text": "",
"text2": [
"Activation du",
"mode Boost"
],
"desc": "Activer le mode \"Boost\" en maintenant le bouton de devant pendant la soudure"
},
"BoostTemperature": { "BoostTemperature": {
"text": "", "text": "",
"text2": [ "text2": [

View File

@@ -130,14 +130,6 @@
], ],
"desc": "Orijentacija ekrana. <A=Automatski, L=Ljevoruki, D=Desnoruki>" "desc": "Orijentacija ekrana. <A=Automatski, L=Ljevoruki, D=Desnoruki>"
}, },
"BoostEnabled": {
"text": "BOOST",
"text2": [
"Boost",
"način"
],
"desc": "Držanjem prednjeg gumba prilikom lemljenja aktivira se pojačani (Boost) način."
},
"BoostTemperature": { "BoostTemperature": {
"text": "BTMP", "text": "BTMP",
"text2": [ "text2": [

View File

@@ -130,14 +130,6 @@
], ],
"desc": "Kijelző tájolása <A. automatikus B. balkezes J. jobbkezes>" "desc": "Kijelző tájolása <A. automatikus B. balkezes J. jobbkezes>"
}, },
"BoostEnabled": {
"text": "BOOST",
"text2": [
"Boost",
"mód"
],
"desc": "Elülső gombbal boost módba (450C) lép forrasztás közben"
},
"BoostTemperature": { "BoostTemperature": {
"text": "BHŐ", "text": "BHŐ",
"text2": [ "text2": [

View File

@@ -132,14 +132,6 @@
], ],
"desc": "Imposta l'orientamento del display <A: automatico; S: mano sinistra; D: mano destra>" "desc": "Imposta l'orientamento del display <A: automatico; S: mano sinistra; D: mano destra>"
}, },
"BoostEnabled": {
"text": "",
"text2": [
"Funzione",
"«Turbo»"
],
"desc": "Attiva la funzione «Turbo», durante la modalità Saldatura, tenendo premuto il tasto superiore"
},
"BoostTemperature": { "BoostTemperature": {
"text": "", "text": "",
"text2": [ "text2": [

View File

@@ -130,14 +130,6 @@
], ],
"desc": "Ekrano orientacija <A - automatinė, K - kairiarankiams, D - dešiniarankiams>" "desc": "Ekrano orientacija <A - automatinė, K - kairiarankiams, D - dešiniarankiams>"
}, },
"BoostEnabled": {
"text": "",
"text2": [
"Turbo režimas",
"įjungtas"
],
"desc": "Ar lituojant viršutinis mygtukas įjungia turbo režimą"
},
"BoostTemperature": { "BoostTemperature": {
"text": "", "text": "",
"text2": [ "text2": [

View File

@@ -130,14 +130,6 @@
], ],
"desc": "Schermoriëntatie <A. Automatisch L. Linkshandig R. Rechtshandig>" "desc": "Schermoriëntatie <A. Automatisch L. Linkshandig R. Rechtshandig>"
}, },
"BoostEnabled": {
"text": "",
"text2": [
"Boostmodes",
"ingeschakeld?"
],
"desc": "Soldeerbout gaat naar een hogere boost-temperatuur wanneer de voorste knop ingedrukt is."
},
"BoostTemperature": { "BoostTemperature": {
"text": "", "text": "",
"text2": [ "text2": [

View File

@@ -130,14 +130,6 @@
], ],
"desc": "Schermoriëntatie <A. Automatisch L. Linkshandig R. Rechtshandig>" "desc": "Schermoriëntatie <A. Automatisch L. Linkshandig R. Rechtshandig>"
}, },
"BoostEnabled": {
"text": "",
"text2": [
"Temperatuurverhoging",
"ingeschakeld?"
],
"desc": "Temperatuur verhoogt als voorste knop is ingedrukt"
},
"BoostTemperature": { "BoostTemperature": {
"text": "", "text": "",
"text2": [ "text2": [

View File

@@ -130,14 +130,6 @@
], ],
"desc": "Skjermretning <A. Automatisk V. Venstrehendt H. Høyrehendt" "desc": "Skjermretning <A. Automatisk V. Venstrehendt H. Høyrehendt"
}, },
"BoostEnabled": {
"text": "Kraft",
"text2": [
"",
""
],
"desc": "Frontknappen aktiverer kraftfunksjonen, 450C ved lodding"
},
"BoostTemperature": { "BoostTemperature": {
"text": "KTmp", "text": "KTmp",
"text2": [ "text2": [

View File

@@ -133,14 +133,6 @@
], ],
"desc": "Orientacja wyświetlacza <A - automatyczna, L - leworęczna, P - praworęczna>" "desc": "Orientacja wyświetlacza <A - automatyczna, L - leworęczna, P - praworęczna>"
}, },
"BoostEnabled": {
"text": "BOOST",
"text2": [
"Tryb",
"boost"
],
"desc": "Przytrzymaj przedni przycisk podczas lutowania w celu zwiększenia temperatury"
},
"BoostTemperature": { "BoostTemperature": {
"text": "BTMP", "text": "BTMP",
"text2": [ "text2": [

View File

@@ -130,14 +130,6 @@
], ],
"desc": "Orientação da tela <A.utomática C.anhoto D.estro>" "desc": "Orientação da tela <A.utomática C.anhoto D.estro>"
}, },
"BoostEnabled": {
"text": "TURBO",
"text2": [
"Modo turbo",
"activado"
],
"desc": "Tecla frontal activa modo \"turbo\""
},
"BoostTemperature": { "BoostTemperature": {
"text": "TTMP", "text": "TTMP",
"text2": [ "text2": [

View File

@@ -132,14 +132,6 @@
], ],
"desc": "Ориентация экрана <А=Авто, Л=Левая рука, П=Правая рука>" "desc": "Ориентация экрана <А=Авто, Л=Левая рука, П=Правая рука>"
}, },
"BoostEnabled": {
"text": "Турб",
"text2": [
"Турбо",
"режим"
],
"desc": "Включить активацию турбо-режима удержанием ближней к жалу кнопки во время пайки"
},
"BoostTemperature": { "BoostTemperature": {
"text": "ТемпТурб", "text": "ТемпТурб",
"text2": [ "text2": [

View File

@@ -130,14 +130,6 @@
], ],
"desc": "Orientacia displeja <A=Auto, L=Lavak, R=Pravak>" "desc": "Orientacia displeja <A=Auto, L=Lavak, R=Pravak>"
}, },
"BoostEnabled": {
"text": "BOOST",
"text2": [
"",
""
],
"desc": "Povolit tlacidlo pre prudky nahrev <T=Zap, F=Vyp>"
},
"BoostTemperature": { "BoostTemperature": {
"text": "BTMP", "text": "BTMP",
"text2": [ "text2": [

View File

@@ -131,14 +131,6 @@
], ],
"desc": "Orientacija zaslona <S. samodejno L. levo D. desno>" "desc": "Orientacija zaslona <S. samodejno L. levo D. desno>"
}, },
"BoostEnabled": {
"text": "BOOST",
"text2": [
"Omogoči",
"boost mode"
],
"desc": "Omogoči, da tipka za naprej zagreje konico na 450C."
},
"BoostTemperature": { "BoostTemperature": {
"text": "BTMP", "text": "BTMP",
"text2": [ "text2": [

View File

@@ -130,14 +130,6 @@
], ],
"desc": "Како је окренут екран. <А=аутоматски, Л=за леворуке, Д=за десноруке>" "desc": "Како је окренут екран. <А=аутоматски, Л=за леворуке, Д=за десноруке>"
}, },
"BoostEnabled": {
"text": "Пјчње",
"text2": [
"Појачање",
"омогућено"
],
"desc": "Држање предњег тастера током лемљења додатно појачава температуру врха."
},
"BoostTemperature": { "BoostTemperature": {
"text": "ТПјч", "text": "ТПјч",
"text2": [ "text2": [

View File

@@ -130,14 +130,6 @@
], ],
"desc": "Kako je okrenut ekran. <A=automatski, L=za levoruke, D=za desnoruke>" "desc": "Kako je okrenut ekran. <A=automatski, L=za levoruke, D=za desnoruke>"
}, },
"BoostEnabled": {
"text": "Pjčnj",
"text2": [
"Pojačanje",
"omogućeno"
],
"desc": "Držanje prednjeg tastera tokom lemljenja dodatno pojačava temperaturu vrha."
},
"BoostTemperature": { "BoostTemperature": {
"text": "TPjč", "text": "TPjč",
"text2": [ "text2": [

View File

@@ -130,14 +130,6 @@
], ],
"desc": "Visningsläge <A. Automatisk V. Vänsterhänt H. Högerhänt>" "desc": "Visningsläge <A. Automatisk V. Vänsterhänt H. Högerhänt>"
}, },
"BoostEnabled": {
"text": "",
"text2": [
"Turboläge",
"aktiverat"
],
"desc": "Aktivera främre knappen för turboläge (temperaturhöjning) vid lödning"
},
"BoostTemperature": { "BoostTemperature": {
"text": "", "text": "",
"text2": [ "text2": [

View File

@@ -130,14 +130,6 @@
], ],
"desc": "Görüntü Yönlendirme <A. Otomatik L. Solak R. Sağlak>" "desc": "Görüntü Yönlendirme <A. Otomatik L. Solak R. Sağlak>"
}, },
"BoostEnabled": {
"text": "BOOST",
"text2": [
"",
""
],
"desc": "Lehimleme yaparken ön tuşa basmak Boost moduna sokar(450C)"
},
"BoostTemperature": { "BoostTemperature": {
"text": "BTMP", "text": "BTMP",
"text2": [ "text2": [

View File

@@ -132,14 +132,6 @@
], ],
"desc": "Орієнтація дисплея <A - Автоповорот, Л - Лівша, П - Правша>" "desc": "Орієнтація дисплея <A - Автоповорот, Л - Лівша, П - Правша>"
}, },
"BoostEnabled": {
"text": "",
"text2": [
"Режим",
"Турбо"
],
"desc": "Турбо-режим при утриманні кнопки А при пайці"
},
"BoostTemperature": { "BoostTemperature": {
"text": "", "text": "",
"text2": [ "text2": [

View File

@@ -193,11 +193,6 @@ var def =
"maxLen": 6, "maxLen": 6,
"maxLen2": 13 "maxLen2": 13
}, },
{
"id": "BoostEnabled",
"maxLen": 6,
"maxLen2": 13
},
{ {
"id": "BoostTemperature", "id": "BoostTemperature",
"maxLen": 4, "maxLen": 4,

View File

@@ -32,8 +32,7 @@ typedef struct {
uint8_t autoStartMode :2; // Should the unit automatically jump straight uint8_t autoStartMode :2; // Should the unit automatically jump straight
// into soldering mode when power is applied // into soldering mode when power is applied
uint8_t ShutdownTime; // Time until unit shuts down if left alone uint8_t ShutdownTime; // Time until unit shuts down if left alone
uint8_t boostModeEnabled :1; // Boost mode swaps BUT_A in soldering mode to
// temporary soldering temp over-ride
uint8_t coolingTempBlink :1; // Should the temperature blink on the cool uint8_t coolingTempBlink :1; // Should the temperature blink on the cool
// down screen until its <50C // down screen until its <50C
uint8_t detailedIDLE :1; // Detailed idle screen uint8_t detailedIDLE :1; // Detailed idle screen

View File

@@ -63,7 +63,6 @@ void resetSettings() {
systemSettings.sensitivity = SENSITIVITY; // Default high sensitivity systemSettings.sensitivity = SENSITIVITY; // Default high sensitivity
systemSettings.voltageDiv = VOLTAGE_DIV; // Default divider from schematic systemSettings.voltageDiv = VOLTAGE_DIV; // Default divider from schematic
systemSettings.ShutdownTime = SHUTDOWN_TIME; // How many minutes until the unit turns itself off systemSettings.ShutdownTime = SHUTDOWN_TIME; // How many minutes until the unit turns itself off
systemSettings.boostModeEnabled = BOOST_MODE_ENABLED; // Default to having boost mode on as most people prefer it
systemSettings.BoostTemp = BOOST_TEMP; // default to 400C systemSettings.BoostTemp = BOOST_TEMP; // default to 400C
systemSettings.autoStartMode = AUTO_START_MODE; // Auto start off for safety systemSettings.autoStartMode = AUTO_START_MODE; // Auto start off for safety
systemSettings.coolingTempBlink = COOLING_TEMP_BLINK; // Blink the temperature on the cooling screen when its > 50C systemSettings.coolingTempBlink = COOLING_TEMP_BLINK; // Blink the temperature on the cooling screen when its > 50C

View File

@@ -46,8 +46,6 @@ static bool settings_setPowerLimit(void);
static void settings_displayPowerLimit(void); static void settings_displayPowerLimit(void);
static bool settings_setDisplayRotation(void); static bool settings_setDisplayRotation(void);
static void settings_displayDisplayRotation(void); static void settings_displayDisplayRotation(void);
static bool settings_setBoostModeEnabled(void);
static void settings_displayBoostModeEnabled(void);
static bool settings_setBoostTemp(void); static bool settings_setBoostTemp(void);
static void settings_displayBoostTemp(void); static void settings_displayBoostTemp(void);
static bool settings_setAutomaticStartMode(void); static bool settings_setAutomaticStartMode(void);
@@ -130,7 +128,7 @@ const menuitem rootSettingsMenu[] {
{ (const char*) SettingsDescriptions[0], settings_setInputVRange, { (const char*) SettingsDescriptions[0], settings_setInputVRange,
settings_displayInputVRange }, /*Voltage input*/ settings_displayInputVRange }, /*Voltage input*/
#else #else
{ (const char*) SettingsDescriptions[20], settings_setInputPRange, { (const char*) SettingsDescriptions[19], settings_setInputPRange,
settings_displayInputPRange }, /*Voltage input*/ settings_displayInputPRange }, /*Voltage input*/
#endif #endif
{ (const char*) NULL, settings_enterSolderingMenu, { (const char*) NULL, settings_enterSolderingMenu,
@@ -150,15 +148,13 @@ const menuitem solderingMenu[] = {
* Temp change short step * Temp change short step
* Temp change long step * Temp change long step
*/ */
{ (const char*) SettingsDescriptions[8], settings_setBoostModeEnabled, { (const char*) SettingsDescriptions[8], settings_setBoostTemp,
settings_displayBoostModeEnabled }, /*Enable Boost*/
{ (const char*) SettingsDescriptions[9], settings_setBoostTemp,
settings_displayBoostTemp }, /*Boost Temp*/ settings_displayBoostTemp }, /*Boost Temp*/
{ (const char*) SettingsDescriptions[10], settings_setAutomaticStartMode, { (const char*) SettingsDescriptions[9], settings_setAutomaticStartMode,
settings_displayAutomaticStartMode }, /*Auto start*/ settings_displayAutomaticStartMode }, /*Auto start*/
{ (const char*) SettingsDescriptions[23], settings_setTempChangeShortStep, { (const char*) SettingsDescriptions[22], settings_setTempChangeShortStep,
settings_displayTempChangeShortStep }, /*Temp change short step*/ settings_displayTempChangeShortStep }, /*Temp change short step*/
{ (const char*) SettingsDescriptions[24], settings_setTempChangeLongStep, { (const char*) SettingsDescriptions[23], settings_setTempChangeLongStep,
settings_displayTempChangeLongStep }, /*Temp change long step*/ settings_displayTempChangeLongStep }, /*Temp change long step*/
{ NULL, NULL, NULL } // end of menu marker. DO NOT REMOVE { NULL, NULL, NULL } // end of menu marker. DO NOT REMOVE
}; };
@@ -177,12 +173,12 @@ const menuitem UIMenu[] = {
#endif #endif
{ (const char*) SettingsDescriptions[7], settings_setDisplayRotation, { (const char*) SettingsDescriptions[7], settings_setDisplayRotation,
settings_displayDisplayRotation }, /*Display Rotation*/ settings_displayDisplayRotation }, /*Display Rotation*/
{ (const char*) SettingsDescriptions[11], { (const char*) SettingsDescriptions[10],
settings_setCoolingBlinkEnabled, settings_setCoolingBlinkEnabled,
settings_displayCoolingBlinkEnabled }, /*Cooling blink warning*/ settings_displayCoolingBlinkEnabled }, /*Cooling blink warning*/
{ (const char*) SettingsDescriptions[16], settings_setScrollSpeed, { (const char*) SettingsDescriptions[15], settings_setScrollSpeed,
settings_displayScrollSpeed }, /*Scroll Speed for descriptions*/ settings_displayScrollSpeed }, /*Scroll Speed for descriptions*/
{ (const char*) SettingsDescriptions[22], { (const char*) SettingsDescriptions[21],
settings_setReverseButtonTempChangeEnabled, settings_setReverseButtonTempChangeEnabled,
settings_displayReverseButtonTempChangeEnabled }, /* Reverse Temp change buttons + - */ settings_displayReverseButtonTempChangeEnabled }, /* Reverse Temp change buttons + - */
{ NULL, NULL, NULL } // end of menu marker. DO NOT REMOVE { NULL, NULL, NULL } // end of menu marker. DO NOT REMOVE
@@ -215,21 +211,21 @@ const menuitem advancedMenu[] = {
* Reset Settings * Reset Settings
* Power Pulse * Power Pulse
*/ */
{ (const char*) SettingsDescriptions[21], settings_setPowerLimit, { (const char*) SettingsDescriptions[20], settings_setPowerLimit,
settings_displayPowerLimit }, /*Power limit*/ settings_displayPowerLimit }, /*Power limit*/
{ (const char*) SettingsDescriptions[6], settings_setAdvancedIDLEScreens, { (const char*) SettingsDescriptions[6], settings_setAdvancedIDLEScreens,
settings_displayAdvancedIDLEScreens }, /* Advanced idle screen*/ settings_displayAdvancedIDLEScreens }, /* Advanced idle screen*/
{ (const char*) SettingsDescriptions[15], settings_setAdvancedSolderingScreens, { (const char*) SettingsDescriptions[14], settings_setAdvancedSolderingScreens,
settings_displayAdvancedSolderingScreens }, /* Advanced soldering screen*/ settings_displayAdvancedSolderingScreens }, /* Advanced soldering screen*/
{ (const char*) SettingsDescriptions[13], settings_setResetSettings, { (const char*) SettingsDescriptions[12], settings_setResetSettings,
settings_displayResetSettings }, /*Resets settings*/ settings_displayResetSettings }, /*Resets settings*/
{ (const char*) SettingsDescriptions[12], settings_setCalibrate, { (const char*) SettingsDescriptions[11], settings_setCalibrate,
settings_displayCalibrate }, /*Calibrate tip*/ settings_displayCalibrate }, /*Calibrate tip*/
{ (const char*) SettingsDescriptions[14], settings_setCalibrateVIN, { (const char*) SettingsDescriptions[13], settings_setCalibrateVIN,
settings_displayCalibrateVIN }, /*Voltage input cal*/ settings_displayCalibrateVIN }, /*Voltage input cal*/
{ (const char*) SettingsDescriptions[25], settings_setPowerPulse, { (const char*) SettingsDescriptions[24], settings_setPowerPulse,
settings_displayPowerPulse }, /*Power Pulse adjustment */ settings_displayPowerPulse }, /*Power Pulse adjustment */
{ (const char*) SettingsDescriptions[26], settings_setTipGain, { (const char*) SettingsDescriptions[25], settings_setTipGain,
settings_displayTipGain }, /*TipGain*/ settings_displayTipGain }, /*TipGain*/
{ NULL, NULL, NULL } // end of menu marker. DO NOT REMOVE { NULL, NULL, NULL } // end of menu marker. DO NOT REMOVE
}; };
@@ -346,7 +342,7 @@ static bool settings_setInputPRange(void) {
static void settings_displayInputPRange(void) { static void settings_displayInputPRange(void) {
printShortDescription(0, 5); printShortDescription(0, 5);
//0 = 9V, 1=12V (Fixed Voltages, these imply 1.5A limits) //0 = 9V, 1=12V (Fixed Voltages, these imply 1.5A limits)
/// TODO TS80P // These are only used in QC3.0 modes
switch (systemSettings.cutoutSetting) { switch (systemSettings.cutoutSetting) {
case 0: case 0:
OLED::printNumber(9, 2); OLED::printNumber(9, 2);
@@ -481,7 +477,7 @@ static bool settings_setAdvancedSolderingScreens(void) {
} }
static void settings_displayAdvancedSolderingScreens(void) { static void settings_displayAdvancedSolderingScreens(void) {
printShortDescription(15, 7); printShortDescription(14, 7);
OLED::drawCheckbox(systemSettings.detailedSoldering); OLED::drawCheckbox(systemSettings.detailedSoldering);
} }
@@ -505,7 +501,7 @@ static bool settings_setPowerLimit(void) {
} }
static void settings_displayPowerLimit(void) { static void settings_displayPowerLimit(void) {
printShortDescription(21, 5); printShortDescription(20, 5);
if (systemSettings.powerLimit == 0) { if (systemSettings.powerLimit == 0) {
OLED::print(OffString); OLED::print(OffString);
} else { } else {
@@ -523,7 +519,7 @@ static bool settings_setScrollSpeed(void) {
} }
static void settings_displayScrollSpeed(void) { static void settings_displayScrollSpeed(void) {
printShortDescription(16, 7); printShortDescription(15, 7);
OLED::print( OLED::print(
(systemSettings.descriptionScrollSpeed) ? (systemSettings.descriptionScrollSpeed) ?
SettingFastChar : SettingSlowChar); SettingFastChar : SettingSlowChar);
@@ -567,39 +563,43 @@ static void settings_displayDisplayRotation(void) {
} }
} }
static bool settings_setBoostModeEnabled(void) {
systemSettings.boostModeEnabled = !systemSettings.boostModeEnabled;
return false;
}
static void settings_displayBoostModeEnabled(void) {
printShortDescription(8, 7);
OLED::drawCheckbox(systemSettings.boostModeEnabled);
}
static bool settings_setBoostTemp(void) { static bool settings_setBoostTemp(void) {
#ifdef ENABLED_FAHRENHEIT_SUPPORT #ifdef ENABLED_FAHRENHEIT_SUPPORT
if (systemSettings.temperatureInF) { if (systemSettings.temperatureInF) {
systemSettings.BoostTemp += 20; // Go up 20F at a time if (systemSettings.BoostTemp == 0) {
systemSettings.BoostTemp = 480; // loop back at 480
} else {
systemSettings.BoostTemp += 20; // Go up 20F at a time
}
if (systemSettings.BoostTemp > 850) { if (systemSettings.BoostTemp > 850) {
systemSettings.BoostTemp = 480; systemSettings.BoostTemp = 0; // jump to off
} }
return systemSettings.BoostTemp == 840; return systemSettings.BoostTemp == 840;
} else } else
#endif #endif
{ {
systemSettings.BoostTemp += 10; // Go up 10C at a time if (systemSettings.BoostTemp == 0) {
if (systemSettings.BoostTemp > 450) {
systemSettings.BoostTemp = 250; // loop back at 250 systemSettings.BoostTemp = 250; // loop back at 250
} else {
systemSettings.BoostTemp += 10; // Go up 10C at a time
}
if (systemSettings.BoostTemp > 450) {
systemSettings.BoostTemp = 0; //Go to off state
} }
return systemSettings.BoostTemp == 450; return systemSettings.BoostTemp == 450;
} }
} }
static void settings_displayBoostTemp(void) { static void settings_displayBoostTemp(void) {
printShortDescription(9, 5); printShortDescription(8, 5);
OLED::printNumber(systemSettings.BoostTemp, 3); if (systemSettings.BoostTemp) {
OLED::printNumber(systemSettings.BoostTemp, 3);
} else {
OLED::print(OffString);
}
} }
static bool settings_setAutomaticStartMode(void) { static bool settings_setAutomaticStartMode(void) {
@@ -609,7 +609,7 @@ static bool settings_setAutomaticStartMode(void) {
} }
static void settings_displayAutomaticStartMode(void) { static void settings_displayAutomaticStartMode(void) {
printShortDescription(10, 7); printShortDescription(9, 7);
switch (systemSettings.autoStartMode) { switch (systemSettings.autoStartMode) {
case 0: case 0:
@@ -636,7 +636,7 @@ static bool settings_setCoolingBlinkEnabled(void) {
} }
static void settings_displayCoolingBlinkEnabled(void) { static void settings_displayCoolingBlinkEnabled(void) {
printShortDescription(11, 7); printShortDescription(10, 7);
OLED::drawCheckbox(systemSettings.coolingTempBlink); OLED::drawCheckbox(systemSettings.coolingTempBlink);
} }
@@ -656,7 +656,7 @@ static bool settings_setResetSettings(void) {
} }
static void settings_displayResetSettings(void) { static void settings_displayResetSettings(void) {
printShortDescription(13, 7); printShortDescription(12, 7);
} }
static void setTipOffset() { static void setTipOffset() {
@@ -702,7 +702,7 @@ static bool settings_setCalibrate(void) {
} }
static void settings_displayCalibrate(void) { static void settings_displayCalibrate(void) {
printShortDescription(12, 5); printShortDescription(11, 5);
} }
static bool settings_setCalibrateVIN(void) { static bool settings_setCalibrateVIN(void) {
@@ -809,7 +809,7 @@ static bool settings_setTipGain(void) {
} }
static void settings_displayTipGain(void) { static void settings_displayTipGain(void) {
printShortDescription(26, 5); printShortDescription(25, 5);
} }
static bool settings_setReverseButtonTempChangeEnabled(void) { static bool settings_setReverseButtonTempChangeEnabled(void) {
@@ -819,7 +819,7 @@ static bool settings_setReverseButtonTempChangeEnabled(void) {
} }
static void settings_displayReverseButtonTempChangeEnabled(void) { static void settings_displayReverseButtonTempChangeEnabled(void) {
printShortDescription(22, 7); printShortDescription(21, 7);
OLED::drawCheckbox(systemSettings.ReverseButtonTempChangeEnabled); OLED::drawCheckbox(systemSettings.ReverseButtonTempChangeEnabled);
} }
@@ -832,7 +832,7 @@ static bool settings_setTempChangeShortStep(void) {
} }
static void settings_displayTempChangeShortStep(void) { static void settings_displayTempChangeShortStep(void) {
printShortDescription(23, 6); printShortDescription(22, 6);
OLED::printNumber(systemSettings.TempChangeShortStep, 2); OLED::printNumber(systemSettings.TempChangeShortStep, 2);
} }
@@ -845,7 +845,7 @@ static bool settings_setTempChangeLongStep(void) {
} }
static void settings_displayTempChangeLongStep(void) { static void settings_displayTempChangeLongStep(void) {
printShortDescription(24, 6); printShortDescription(23, 6);
OLED::printNumber(systemSettings.TempChangeLongStep, 2); OLED::printNumber(systemSettings.TempChangeLongStep, 2);
} }
@@ -856,13 +856,13 @@ static bool settings_setPowerPulse(void) {
return systemSettings.KeepAwakePulse == POWER_PULSE_MAX - 1; return systemSettings.KeepAwakePulse == POWER_PULSE_MAX - 1;
} }
static void settings_displayPowerPulse(void) { static void settings_displayPowerPulse(void) {
printShortDescription(25, 5); printShortDescription(24, 5);
if (systemSettings.KeepAwakePulse) { if (systemSettings.KeepAwakePulse) {
OLED::printNumber(systemSettings.KeepAwakePulse / 10, 1); OLED::printNumber(systemSettings.KeepAwakePulse / 10, 1);
OLED::print(SymbolDot); OLED::print(SymbolDot);
OLED::printNumber(systemSettings.KeepAwakePulse % 10, 1); OLED::printNumber(systemSettings.KeepAwakePulse % 10, 1);
} else { } else {
OLED::drawCheckbox(false); OLED::print(OffString);
} }
} }
@@ -880,7 +880,7 @@ static void displayMenu(size_t index) {
} }
static void settings_displayCalibrateVIN(void) { static void settings_displayCalibrateVIN(void) {
printShortDescription(14, 5); printShortDescription(13, 5);
} }
static void settings_displaySolderingMenu(void) { static void settings_displaySolderingMenu(void) {
displayMenu(0); displayMenu(0);

View File

@@ -439,7 +439,7 @@ static void gui_solderingMode(uint8_t jumpToSleep) {
break; break;
case BUTTON_F_LONG: case BUTTON_F_LONG:
// if boost mode is enabled turn it on // if boost mode is enabled turn it on
if (systemSettings.boostModeEnabled) if (systemSettings.BoostTemp)
boostModeOn = true; boostModeOn = true;
break; break;
case BUTTON_F_SHORT: case BUTTON_F_SHORT: