From d559294359cf002c4507820fdfb64d9095e5faed Mon Sep 17 00:00:00 2001 From: wangfq Date: Thu, 2 Jul 2026 14:21:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B7=BB=E5=8A=A0=20format=5Fsensor=5Fj?= =?UTF-8?q?son=20=E5=89=8D=E7=BD=AE=E5=A3=B0=E6=98=8E=EF=BC=8C=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=20implicit=20declaration=20=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vd960DBN/BLE/OnlyUpdateApp_Peripheral/APP/tcp_json_srv.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vd960DBN/BLE/OnlyUpdateApp_Peripheral/APP/tcp_json_srv.c b/vd960DBN/BLE/OnlyUpdateApp_Peripheral/APP/tcp_json_srv.c index 1bb8d9e..4b22278 100644 --- a/vd960DBN/BLE/OnlyUpdateApp_Peripheral/APP/tcp_json_srv.c +++ b/vd960DBN/BLE/OnlyUpdateApp_Peripheral/APP/tcp_json_srv.c @@ -745,6 +745,11 @@ static void json_process_frame(uint8_t socket, const char *frame) { /*=========================================================================== * json_sensor_callback — 注册到 lup_process_frame,0xC0 帧到达时直接推送 *===========================================================================*/ + +/* Forward declarations */ +static int format_sensor_json(char *buf, uint16_t buf_size, const LUP_SensorReport *sr); +static int format_loop_param_json(char *buf, uint16_t buf_size, const LUP_ParamGet *pg); + static void json_sensor_callback(const uint8_t *pkg, uint16_t len) { // Check: socket active, authed, report enabled