wxl 2 тижнів тому
батько
коміт
cebbc08f39
1 змінених файлів з 3 додано та 2 видалено
  1. 3 2
      Users/stat/stat.c

+ 3 - 2
Users/stat/stat.c

@@ -779,7 +779,7 @@ void low_power_monitor(void)
     {
         // modified by yuewei 20260407
         // if (McuVbat >= 3025)
-        if ((McuVbat >= 3100) /* && (McuVTxbat >= 3025)*/) //// wxl2026-6-2
+        if ((McuVbat >= WARN_VBAT_RET) /* && (McuVTxbat >= 3025)*/) //// wxl2026-6-2
         {
             low_pwr_up_cnt++;
             if (low_pwr_up_cnt >= 1) // 3->1,modified by yuewei 20260407
@@ -797,7 +797,8 @@ void low_power_monitor(void)
     {
         // modified by yuewei 20260407
         // if (McuVbat <= 2975)
-        if (McuVbat <= 3000 /*|| McuVTxbat <= 2975*/) // only one vol port in small meter wxl2026-6-2
+        // if (McuVbat <= 3000 /*|| McuVTxbat <= 2975*/) // only one vol port in small meter wxl2026-6-2
+        if (McuVbat <= MIN_WARN_VBAT /*|| McuVTxbat <= 2975*/) // only one vol port in small meter wxl2026-6-2
         {
             low_pwr_down_cnt++;