优化4570 chipID管控 3281/1 3281/head 3283/target/1
author1624952103 <pl@DESKTOP-EN9LKR5.localdomain>
Tue, 17 Mar 2026 07:58:08 +0000 (15:58 +0800)
committer1624952103 <pl@DESKTOP-EN9LKR5.localdomain>
Tue, 17 Mar 2026 07:58:08 +0000 (15:58 +0800)
code/sdk/zhihui/drivers/charge/hp4570/hp4570.c

index 1efa5fd..19e6faf 100644 (file)
@@ -264,9 +264,12 @@ bool hp4570n_identify(uint8_t chip_ver){
       return FAIL;\r
   }\r
 \r
+  // bool is_valid_combination = \r
+  //     ((pid_value[1] == 0x00) && (chip_ver_value == 0x02)) || \r
+  //     ((pid_value[1] == 0x03) && (chip_ver_value == 0x00));\r
+\r
   bool is_valid_combination = \r
-      ((pid_value[1] == 0x00) && (chip_ver_value == 0x02)) || \r
-      ((pid_value[1] == 0x03) && (chip_ver_value == 0x00));\r
+    ((pid_value[1] == 0x00)|| (pid_value[1] == 0x03));\r
 \r
   if (!is_valid_combination) {\r
       return FAIL;\r