From 48bc6114078a07666f3c683a742b327193007254 Mon Sep 17 00:00:00 2001 From: kyz Date: Tue, 19 Aug 2025 22:39:48 +0800 Subject: [PATCH] =?utf8?q?=E4=BF=AE=E5=A4=8D=E7=84=8A=E6=8E=A5=E7=94=B5?= =?utf8?q?=E6=B5=81=E8=B4=9F=E5=80=BC=E6=97=B6=E4=B8=8A=E6=8A=A5=E5=B9=B3?= =?utf8?q?=E5=8F=B0=E5=80=BC=E4=B8=BA0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- user/user_report.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/user/user_report.c b/user/user_report.c index 9a57a1b..65cb232 100644 --- a/user/user_report.c +++ b/user/user_report.c @@ -63,7 +63,7 @@ static const char* keepalive_fmt ="{ \"action\":\"heartbeat\", \"mac\":\"%s\" }" typedef struct{ uint32_t cid; char* mac; - uint32_t curr_x10; + int32_t curr_x10; uint32_t weld_st; uint32_t flow_x10; uint32_t vol_x10;//电压 @@ -107,7 +107,7 @@ int32_t get_new_rpt_info( rpt_info_t *rpt ) rpt->cid = g_rpt_sent.cid; rpt->mac = g_mac_str; - rpt->curr_x10 = (uint32_t)(welding_curr_disp_value( g_dev.welding_current )*10); + rpt->curr_x10 = (int32_t)(welding_curr_disp_value( g_dev.welding_current )*10); rpt->weld_st = g_dev.welding_start; rpt->flow_x10 = (uint32_t)(g_dev.flowmeter.flow_speed*10); rpt->vol_x10 = (uint32_t)(g_dev.welding_voltage*10); -- 2.34.1