diff --git a/Software/src/webui.cpp b/Software/src/webui.cpp index 6321cc6..27d4dd7 100644 --- a/Software/src/webui.cpp +++ b/Software/src/webui.cpp @@ -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; + } } \ No newline at end of file