Browse Source

fix:pm没有适配新的规则

alienwalker 3 years ago
parent
commit
b1575c6315
1 changed files with 2 additions and 1 deletions
  1. 2 1
      application/src/luat_pm_air105.c

+ 2 - 1
application/src/luat_pm_air105.c

@@ -15,7 +15,7 @@ int luat_pm_request(int mode) {
 //    {
 //    	Uart_Sleep(i, 0);
 //    }
-	if (mode != LUAT_PM_SLEEP_MODE_IDLE)
+	if (mode > LUAT_PM_SLEEP_MODE_IDLE)
 	{
 		PM_SetDriverRunFlag(PM_DRV_DBG, 0);
 	}
@@ -23,6 +23,7 @@ int luat_pm_request(int mode) {
 	{
 		PM_SetDriverRunFlag(PM_DRV_DBG, 1);
 	}
+
     return 0;
 }