Add autostart
Adds autostart option. Only works on first power up, so if the settings wrong you can still easily change it 😄 Fixes #43
This commit is contained in:
@@ -215,6 +215,9 @@ void ProcessUI() {
|
||||
case POWERDISPLAY:
|
||||
systemSettings.powerDisplay = !systemSettings.powerDisplay;
|
||||
break;
|
||||
case AUTOSTART:
|
||||
systemSettings.autoStart = !systemSettings.autoStart;
|
||||
break;
|
||||
#ifdef PIDTUNING
|
||||
case PIDP:
|
||||
pidSettings.kp++;
|
||||
@@ -650,6 +653,17 @@ void DrawUI() {
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case AUTOSTART:
|
||||
OLED_DrawString(SettingsShortNames[AUTOSTART], 7);
|
||||
switch (systemSettings.autoStart) {
|
||||
case 1:
|
||||
OLED_DrawChar('T', 7);
|
||||
break;
|
||||
case 0:
|
||||
OLED_DrawChar('F', 7);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
#ifdef PIDTUNING
|
||||
case PIDP:
|
||||
OLED_DrawString("PIDP ", 5);
|
||||
|
||||
Reference in New Issue
Block a user