Autostart: Manual/Auto/Sleep
This commit is contained in:
@@ -95,6 +95,9 @@ def getConstants():
|
|||||||
consants.append(('SymbolDC', 'DC'))
|
consants.append(('SymbolDC', 'DC'))
|
||||||
consants.append(('SymbolCellCount', 'S'))
|
consants.append(('SymbolCellCount', 'S'))
|
||||||
consants.append(('SymbolVersionNumber', 'V2.07'))
|
consants.append(('SymbolVersionNumber', 'V2.07'))
|
||||||
|
consants.append(('SymbolManual', 'M'))
|
||||||
|
consants.append(('SymbolAuto', 'A'))
|
||||||
|
consants.append(('SymbolSleep', 'S'))
|
||||||
return consants
|
return consants
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -67,6 +67,9 @@ extern const char* SymbolWatts;
|
|||||||
extern const char* SymbolVolts;
|
extern const char* SymbolVolts;
|
||||||
extern const char* SymbolDC;
|
extern const char* SymbolDC;
|
||||||
extern const char* SymbolCellCount;
|
extern const char* SymbolCellCount;
|
||||||
|
extern const char* SymbolManual;
|
||||||
|
extern const char* SymbolAuto;
|
||||||
|
extern const char* SymbolSleep;
|
||||||
extern const char* SymbolVersionNumber;
|
extern const char* SymbolVersionNumber;
|
||||||
|
|
||||||
extern const char* DebugMenu[];
|
extern const char* DebugMenu[];
|
||||||
|
|||||||
@@ -564,12 +564,26 @@ static void settings_displayBoostTemp(void) {
|
|||||||
|
|
||||||
static void settings_setAutomaticStartMode(void) {
|
static void settings_setAutomaticStartMode(void) {
|
||||||
systemSettings.autoStartMode++;
|
systemSettings.autoStartMode++;
|
||||||
systemSettings.autoStartMode %= 2;
|
systemSettings.autoStartMode %= 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void settings_displayAutomaticStartMode(void) {
|
static void settings_displayAutomaticStartMode(void) {
|
||||||
printShortDescription(10, 7);
|
printShortDescription(10, 7);
|
||||||
OLED::drawCheckbox(systemSettings.autoStartMode);
|
|
||||||
|
switch (systemSettings.autoStartMode) {
|
||||||
|
case 0:
|
||||||
|
OLED::print(SymbolManual);
|
||||||
|
break;
|
||||||
|
case 1:
|
||||||
|
OLED::print(SymbolAuto);
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
OLED::print(SymbolSleep);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
OLED::print(SymbolManual);
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void settings_setCoolingBlinkEnabled(void) {
|
static void settings_setCoolingBlinkEnabled(void) {
|
||||||
|
|||||||
Reference in New Issue
Block a user