got most of the WebUI updated and working

This commit is contained in:
2024-05-31 03:03:47 +02:00
parent 9301607468
commit c9fba23e70
10 changed files with 305 additions and 432 deletions

View File

@@ -58,6 +58,17 @@ typedef enum eSystem_Status
sysStat_Shutdown
} tSystem_Status;
typedef enum batteryType_e
{
BATTERY_UNDEFINED,
BATTERY_LIPO_2S,
BATTERY_LIPO_3S
} batteryType_t;
// String representation of SpeedSource enum
extern const char *BatteryString[];
extern const size_t BatteryString_Elements;
#define STARTUP_DELAY 2500
#define SHUTDOWN_DELAY_MS 2500

View File

@@ -57,20 +57,6 @@ typedef struct
uint32_t checksum;
} persistenceData_t;
typedef enum
{
BATTERY_UNDEFINED,
BATTERY_LIPO_2S,
BATTERY_LIPO_3S
} batteryType_t;
const char BatteryString[][10]{
"Undefined",
"LiPo 2S",
"LiPo 3S"};
const size_t BatteryString_Elements = sizeof(BatteryString) / sizeof(BatteryString[0]);
// Structure for configuration settings stored in EEPROM
typedef struct
{