Better settings management.

This commit is contained in:
Joe Kearney 2025-11-30 14:27:08 -06:00
parent c3362d42af
commit e01f301c9c
6 changed files with 309 additions and 112 deletions

View file

@ -42,8 +42,7 @@
#include <string.h>
#include <SystemK.h>
#include <System_Events.h>
#include <SPIFFS.h>
#include <USB.h>
#include <NVM.h>
#include <I2S_Audio.h>
#include <Switches.h>
#include <BLE.h>
@ -89,6 +88,9 @@ void app_main(void)
Initialize_USB();
Wait_For_System_Event(SYS_USB_FS_PRESENT, "Timeout initializing USB!", INITIALIZATION_TIMEOUT_IN_ms);
Initialize_Settings();
Wait_For_System_Event(SYS_SETTINGS_READY, "Timeout initializing Settings!", INITIALIZATION_TIMEOUT_IN_ms);
if (OTA_File_Exists() == true)
{
KLOG_INFO(TAG, "Attempting OTA reprogramming from %s.", Get_OTA_Image_URL());