fix: 添加 format_sensor_json 前置声明,修复 implicit declaration 编译错误

This commit is contained in:
wangfq
2026-07-02 14:21:06 +08:00
parent 6acd788d13
commit d559294359

View File

@@ -745,6 +745,11 @@ static void json_process_frame(uint8_t socket, const char *frame) {
/*=========================================================================== /*===========================================================================
* json_sensor_callback — 注册到 lup_process_frame0xC0 帧到达时直接推送 * json_sensor_callback — 注册到 lup_process_frame0xC0 帧到达时直接推送
*===========================================================================*/ *===========================================================================*/
/* 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) static void json_sensor_callback(const uint8_t *pkg, uint16_t len)
{ {
// Check: socket active, authed, report enabled // Check: socket active, authed, report enabled