|
|
@@ -12,7 +12,7 @@
|
|
|
#include "state.h"
|
|
|
#include "iostate.h"
|
|
|
|
|
|
-#define ALLOW_DEEP_SLEEP 1
|
|
|
+#define ALLOW_DEEP_SLEEP 0
|
|
|
#define SLEEP_IGNORE_UNHEALTH 1
|
|
|
#define ALLOW_POWER_DOWN 0 //disable power down for debug
|
|
|
#define ALLOW_5238_BALANCE 1
|
|
|
@@ -156,9 +156,10 @@ static void _process_power_down(void){
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
-static u64 _sleep_time = 0;
|
|
|
+
|
|
|
static void _process_deepsleep(s32 health){
|
|
|
#if (ALLOW_DEEP_SLEEP==1)
|
|
|
+ static u64 _sleep_time = 0;
|
|
|
#if (SLEEP_IGNORE_UNHEALTH==0)
|
|
|
if (health != Health_Success){
|
|
|
return;
|