mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-08 04:27:12 +03:00
move sleep init at the very end of boot (all must be initialized)
This commit is contained in:
@@ -173,7 +173,7 @@ static void sleep_battery(float level, int cells) {
|
||||
/****************************************************************************************
|
||||
*
|
||||
*/
|
||||
static void sleep_init(void) {
|
||||
void services_sleep_init(void) {
|
||||
char *config = config_alloc_get(NVS_TYPE_STR, "sleep_config");
|
||||
char *p;
|
||||
|
||||
@@ -416,5 +416,4 @@ void services_init(void) {
|
||||
led_svc_init();
|
||||
battery_svc_init();
|
||||
monitor_svc_init();
|
||||
sleep_init();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user