fix compile error
Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -20,4 +20,3 @@
|
|||||||
.ionide
|
.ionide
|
||||||
|
|
||||||
# End of https://www.toptal.com/developers/gitignore/api/visualstudiocode
|
# End of https://www.toptal.com/developers/gitignore/api/visualstudiocode
|
||||||
firmware/main/insights_auth_key.txt
|
|
||||||
|
@@ -1,8 +1,6 @@
|
|||||||
#include "ui/SplashScreen.h"
|
#include "ui/SplashScreen.h"
|
||||||
|
|
||||||
#include "analytics.h"
|
|
||||||
#include "ui/MainMenu.h"
|
#include "ui/MainMenu.h"
|
||||||
#include "wifi_manager.h"
|
|
||||||
|
|
||||||
uint64_t splashTime = 0;
|
uint64_t splashTime = 0;
|
||||||
|
|
||||||
|
@@ -1,18 +1,27 @@
|
|||||||
menu "System Control"
|
menu "System Control"
|
||||||
menu "WiFi Configuration"
|
menu "WiFi Configuration"
|
||||||
|
config WIFI_ENABLED
|
||||||
|
bool "Enable WiFi"
|
||||||
|
default y
|
||||||
|
help
|
||||||
|
Enable or disable WiFi connectivity.
|
||||||
|
|
||||||
config WIFI_SSID
|
config WIFI_SSID
|
||||||
|
depends on WIFI_ENABLED
|
||||||
string "WiFi SSID"
|
string "WiFi SSID"
|
||||||
default "YourSSID"
|
default "YourSSID"
|
||||||
help
|
help
|
||||||
The SSID of the WiFi network to connect to.
|
The SSID of the WiFi network to connect to.
|
||||||
|
|
||||||
config WIFI_PASSWORD
|
config WIFI_PASSWORD
|
||||||
|
depends on WIFI_ENABLED
|
||||||
string "WiFi Password"
|
string "WiFi Password"
|
||||||
default "YourPassword"
|
default "YourPassword"
|
||||||
help
|
help
|
||||||
The password of the WiFi network to connect to.
|
The password of the WiFi network to connect to.
|
||||||
|
|
||||||
config WIFI_CONNECT_RETRIES
|
config WIFI_CONNECT_RETRIES
|
||||||
|
depends on WIFI_ENABLED
|
||||||
int "WiFi Connection Retry Attempts"
|
int "WiFi Connection Retry Attempts"
|
||||||
default 5
|
default 5
|
||||||
help
|
help
|
||||||
|
@@ -11,6 +11,7 @@
|
|||||||
#include "hal_esp32/PersistenceManager.h"
|
#include "hal_esp32/PersistenceManager.h"
|
||||||
#include "i2c_checker.h"
|
#include "i2c_checker.h"
|
||||||
#include "led_status.h"
|
#include "led_status.h"
|
||||||
|
#include "sdkconfig.h"
|
||||||
#include "u8g2.h"
|
#include "u8g2.h"
|
||||||
#include "ui/ClockScreenSaver.h"
|
#include "ui/ClockScreenSaver.h"
|
||||||
#include "ui/ScreenSaver.h"
|
#include "ui/ScreenSaver.h"
|
||||||
@@ -166,8 +167,10 @@ void app_task(void *args)
|
|||||||
setup_buttons();
|
setup_buttons();
|
||||||
init_ui();
|
init_ui();
|
||||||
|
|
||||||
|
#if CONFIG_WIFI_ENABLED
|
||||||
wifi_manager_init();
|
wifi_manager_init();
|
||||||
analytics_init();
|
analytics_init();
|
||||||
|
#endif
|
||||||
|
|
||||||
auto oldTime = esp_timer_get_time();
|
auto oldTime = esp_timer_get_time();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user