hp4570增加定时喂狗重置(补) 3405/2 3405/head 3409/target/1
author1624952103 <pl@DESKTOP-EN9LKR5.localdomain>
Sat, 9 May 2026 09:56:45 +0000 (17:56 +0800)
committer1624952103 <pl@DESKTOP-EN9LKR5.localdomain>
Sat, 9 May 2026 09:56:45 +0000 (17:56 +0800)
code/sdk/zhihui/services/battery/service/battery_service.cpp

index 65eb541..e26859d 100644 (file)
@@ -599,12 +599,12 @@ static void battery_check_task(void *arg)
                 {
                     g_charge_wdt_sec_counter = 0;
 #if defined(ENABLE_HP4570)
-                    hp4570n_wdt_rst();
                     if (hp4570n_read_status_wdt_fault()) 
                     {
                         PRINT("[battery] HP4570 WDT fault, hp4570n_reset()\r\n");
                         hp4570n_reset();
                     }
+                    hp4570n_wdt_rst();
 #elif defined(ENABLE_SGM41562)
                     sgm41562_wdt_rst();
 #endif