From b33706bdd9180ded2b65c626a74fb904e720d508 Mon Sep 17 00:00:00 2001 From: stark1898y <1658608470@qq.com> Date: Wed, 4 Jun 2025 14:04:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E5=AD=98=EF=BC=8Ctest=E5=87=BD?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/src/bsp_ml307.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bsp/src/bsp_ml307.c b/bsp/src/bsp_ml307.c index 76d9e0f..31cd14a 100644 --- a/bsp/src/bsp_ml307.c +++ b/bsp/src/bsp_ml307.c @@ -318,7 +318,8 @@ uint8_t bcd_to_dec(uint8_t bcd) int test(int argc, char **argv) { - uint8_t b = atoi(argv[1]); + uint8_t a = atoi(argv[1]); + rt_uint8_t b = a; LOG_D("in = 0x%02X, %d", a, a); b = a;