1
0
forked from me/IronOS

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:
Ben V. Brown
2017-08-06 22:21:57 +10:00
parent f1aa331168
commit 48040acbcc
7 changed files with 57 additions and 26 deletions

View File

@@ -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);