fix compile error

Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
2025-09-13 20:58:44 +02:00
parent 59f2d3f83a
commit 5d553c0fbb
4 changed files with 12 additions and 3 deletions

View File

@@ -1,8 +1,6 @@
#include "ui/SplashScreen.h"
#include "analytics.h"
#include "ui/MainMenu.h"
#include "wifi_manager.h"
uint64_t splashTime = 0;

View File

@@ -1,18 +1,27 @@
menu "System Control"
menu "WiFi Configuration"
config WIFI_ENABLED
bool "Enable WiFi"
default y
help
Enable or disable WiFi connectivity.
config WIFI_SSID
depends on WIFI_ENABLED
string "WiFi SSID"
default "YourSSID"
help
The SSID of the WiFi network to connect to.
config WIFI_PASSWORD
depends on WIFI_ENABLED
string "WiFi Password"
default "YourPassword"
help
The password of the WiFi network to connect to.
config WIFI_CONNECT_RETRIES
depends on WIFI_ENABLED
int "WiFi Connection Retry Attempts"
default 5
help

View File

@@ -11,6 +11,7 @@
#include "hal_esp32/PersistenceManager.h"
#include "i2c_checker.h"
#include "led_status.h"
#include "sdkconfig.h"
#include "u8g2.h"
#include "ui/ClockScreenSaver.h"
#include "ui/ScreenSaver.h"
@@ -166,8 +167,10 @@ void app_task(void *args)
setup_buttons();
init_ui();
#if CONFIG_WIFI_ENABLED
wifi_manager_init();
analytics_init();
#endif
auto oldTime = esp_timer_get_time();