Added Commands for BatterySetting
This commit is contained in:
parent
3ee276c189
commit
99dc58f3c9
@ -206,4 +206,20 @@ void WebserverCommands_Callback(String input)
|
||||
PersistenceData.faction_3_timer = 0;
|
||||
PersistenceData.activeFaction = NONE;
|
||||
}
|
||||
else if (command == "BAT3S")
|
||||
{
|
||||
strcpy(StatusResponseMessage, "Set BatteryType to LiPo 3S");
|
||||
StatusResponseMessage_Type = RESPMSG_SUCCESS;
|
||||
|
||||
ConfigData.batteryType = BATTERY_LIPO_3S;
|
||||
globals.requestEEAction = EE_CFG_SAVE;
|
||||
}
|
||||
else if (command == "BAT2S")
|
||||
{
|
||||
strcpy(StatusResponseMessage, "Set BatteryType to LiPo 2S");
|
||||
StatusResponseMessage_Type = RESPMSG_SUCCESS;
|
||||
|
||||
ConfigData.batteryType = BATTERY_LIPO_2S;
|
||||
globals.requestEEAction = EE_CFG_SAVE;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user