From 4bfb77ebcc7c47b25c60ec789aebfcf770a18d44 Mon Sep 17 00:00:00 2001 From: Joe Maples Date: Sun, 25 Dec 2022 01:00:33 -0500 Subject: [PATCH] Enable auto shutdown --- apps/main/apps.cpp | 8 ++++---- config/common.mk | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/main/apps.cpp b/apps/main/apps.cpp index 0c81721..28f6aaa 100644 --- a/apps/main/apps.cpp +++ b/apps/main/apps.cpp @@ -2141,7 +2141,7 @@ void user_io_timer_init(void) //app_mute_ctrl_init(); LED_statusinit(); //pwrkey_detinit(); - //Auto_Shutdowm_Timerinit(); + Auto_Shutdowm_Timerinit(); delay_report_toneinit(); once_delay_event_Timer_init(); //app_i2c_demo_init(); @@ -2470,7 +2470,7 @@ extern int rpc_service_setup(void); if (pwron_case == APP_POWERON_CASE_REBOOT){ app_status_indication_init(); - //user_io_timer_init(); + user_io_timer_init(); app_status_indication_set(APP_STATUS_INDICATION_POWERON); #ifdef MEDIA_PLAYER_SUPPORT app_voice_report(APP_STATUS_INDICATION_POWERON, 0); @@ -2568,8 +2568,8 @@ extern int rpc_service_setup(void); } #endif else{ - //user_io_timer_init(); - app_status_indication_init(); + user_io_timer_init(); + app_status_indication_init(); app_status_indication_set(APP_STATUS_INDICATION_POWERON); #ifdef MEDIA_PLAYER_SUPPORT app_voice_report(APP_STATUS_INDICATION_POWERON, 0); diff --git a/config/common.mk b/config/common.mk index 5fab6d4..fad02ac 100644 --- a/config/common.mk +++ b/config/common.mk @@ -2660,4 +2660,4 @@ endif export POWER_ON_ENTER_TWS_PAIRING_ENABLED ?= 0 ifeq ($(POWER_ON_ENTER_TWS_PAIRING_ENABLED),1) KBUILD_CPPFLAGS += -DPOWER_ON_ENTER_TWS_PAIRING_ENABLED -endif \ No newline at end of file +endif