From: 1624952103 Date: Tue, 17 Mar 2026 07:58:08 +0000 (+0800) Subject: 优化4570 chipID管控 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F3281%2Fhead;p=mirrors%2FFD230.git 优化4570 chipID管控 --- diff --git a/code/sdk/zhihui/drivers/charge/hp4570/hp4570.c b/code/sdk/zhihui/drivers/charge/hp4570/hp4570.c index 1efa5fdc9..19e6fafc5 100644 --- a/code/sdk/zhihui/drivers/charge/hp4570/hp4570.c +++ b/code/sdk/zhihui/drivers/charge/hp4570/hp4570.c @@ -264,9 +264,12 @@ bool hp4570n_identify(uint8_t chip_ver){ return FAIL; } + // bool is_valid_combination = + // ((pid_value[1] == 0x00) && (chip_ver_value == 0x02)) || + // ((pid_value[1] == 0x03) && (chip_ver_value == 0x00)); + bool is_valid_combination = - ((pid_value[1] == 0x00) && (chip_ver_value == 0x02)) || - ((pid_value[1] == 0x03) && (chip_ver_value == 0x00)); + ((pid_value[1] == 0x00)|| (pid_value[1] == 0x03)); if (!is_valid_combination) { return FAIL;