From 65c2c60fd683bcd7afd467b1b772ad43e5d72233 Mon Sep 17 00:00:00 2001 From: penglei <1624952103@qq.com> Date: Mon, 10 Nov 2025 16:43:36 +0800 Subject: [PATCH] =?utf8?q?=E4=BC=98=E5=8C=96272=E5=85=85=E7=94=B5=E5=8F=82?= =?utf8?q?=E6=95=B0=E8=AE=BE=E7=BD=AE=EF=BC=8C=E4=BC=98=E5=8C=96tp?= =?utf8?q?=E6=B5=8B=E8=AF=95=E3=80=81ppg=E6=B5=8B=E8=AF=95=E3=80=82?= =?utf8?q?=E4=BC=98=E5=8C=96=E9=9B=B7=E9=B8=9F=E7=94=B5=E6=B1=A0=E6=9B=B2?= =?utf8?q?=E7=BA=BF=EF=BC=88=E8=A1=A5=EF=BC=89(=E8=A1=A5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- code/sdk/zhihui/drivers/charge/service/charge_at_cmd.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/sdk/zhihui/drivers/charge/service/charge_at_cmd.c b/code/sdk/zhihui/drivers/charge/service/charge_at_cmd.c index 5dd45d682..83a7e8677 100644 --- a/code/sdk/zhihui/drivers/charge/service/charge_at_cmd.c +++ b/code/sdk/zhihui/drivers/charge/service/charge_at_cmd.c @@ -2,7 +2,7 @@ * @Author: penglei 1624952103@qq.com * @Date: 2024-12-23 15:11:01 * @LastEditors: penglei 1624952103@qq.com - * @LastEditTime: 2024-12-30 15:24:42 + * @LastEditTime: 2025-11-10 16:35:15 * @FilePath: /sdk615/code/sdk/zhihui/drivers/charge/HP4570/service/charge_at_cmd.c * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ @@ -65,6 +65,7 @@ static uint32_t hp4570_test(uint8_t *para, uint32_t paraLen, char *strCommonCmd) PRINT("CHARGETEST ATCMD Set Parameter Failed argc %d\n",argc); return ERRCODE_FAIL; } + uint8_t start = (uint8_t)atoi((char*)argv[0]); if (start == 1) { @@ -73,7 +74,7 @@ static uint32_t hp4570_test(uint8_t *para, uint32_t paraLen, char *strCommonCmd) // PRINT("SKIP CHARGEtest start, already started\r\n"); // return 0; // } - hp45xxx_init(HP4570C9); + hp4570_init(HP4570C9); g_charge_test_started = 1; }else if (start == 2){ if (g_charge_test_started == 0) @@ -84,6 +85,7 @@ static uint32_t hp4570_test(uint8_t *para, uint32_t paraLen, char *strCommonCmd) // ots_stop(); g_charge_test_started = 0 ; } + return ERRCODE_SUCC; } static const at_cmd_table_t g_charge_cmd[] = { -- 2.17.1