Parcourir la source

修复power驱动状态返回值

liu qidong [url ssh://qidong.liu@10.2.90.253:29418/] il y a 1 mois
Parent
commit
f523aa902f
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      power.c

+ 2 - 2
power.c

@@ -254,7 +254,7 @@ static void delay_work_func(struct work_struct *work)
     uint8_t ret = 0;
 
     ret = ac_present();
-    if(ret == 1)
+    if(ret == 0)
     {
         ac_flag++;
     }
@@ -264,7 +264,7 @@ static void delay_work_func(struct work_struct *work)
     }
 
     ret = soft_rest_btn();
-    if(ret == 1)
+    if(ret == 0)
     {
         rst_flag++;
     }