From ab83a2969991c6495dab808fc56f20032d5347cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E9=A9=AC=5F666?= <13089258+pony-six-hundred-and-sixty-six@user.noreply.gitee.com> Date: Thu, 29 May 2025 10:14:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/inc/bsp_ml307.h | 2 +- bsp/src/at_device_ml307.c | 3 +-- bsp/src/bsp_ml307.c | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/bsp/inc/bsp_ml307.h b/bsp/inc/bsp_ml307.h index eb2d970..9f8fed5 100644 --- a/bsp/inc/bsp_ml307.h +++ b/bsp/inc/bsp_ml307.h @@ -34,7 +34,7 @@ #define CMD_TYPE_INSTRUCTION_REPLY 0x14 // 命令类型 - 指令下发回复 (设备->平台) #define CMD_TYPE_TIME_CALIBRATION 0x15 // 命令类型 - 时间校准 (设备->平台) -#define PROTOCOL_VERSION 0x42 /*协议版本*/ +#define PROTOCOL_VERSION 0x11 /*协议版本*/ /*数据序列号*/ #define DATA_SERIAL_NUM 0x0001 // 1 diff --git a/bsp/src/at_device_ml307.c b/bsp/src/at_device_ml307.c index e0d1fc5..ab68f8d 100644 --- a/bsp/src/at_device_ml307.c +++ b/bsp/src/at_device_ml307.c @@ -2,7 +2,7 @@ * @Author: mbw * @Date: 2024-11-30 15:46:21 * @LastEditors: mbw && 1600520629@qq.com - * @LastEditTime: 2025-05-29 09:39:47 + * @LastEditTime: 2025-05-29 10:12:17 * @FilePath: \ble_bjq_ch303rct6_ml307\bsp\src\at_device_ml307.c * @Description: * @@ -186,7 +186,6 @@ static void urc_tcp_connect_state(struct at_client *client, const char *data, rt if (sscanf(data, "+MIPOPEN:%d,%d", &id, &err_code) == 2) { - socket_id = id; { switch (err_code) { diff --git a/bsp/src/bsp_ml307.c b/bsp/src/bsp_ml307.c index bdbd741..0d48baa 100644 --- a/bsp/src/bsp_ml307.c +++ b/bsp/src/bsp_ml307.c @@ -486,7 +486,6 @@ int Ml307_Send_Alarm (struct at_device *device, void *param) LOG_E ("ml307 param error\n"); return RT_ERROR; } - rt_err_t ret = RT_EOK; ret = device->class->device_ops->control (device, AT_DEVICE_CTRL_GET_SIGNAL, RT_NULL); if (ret != RT_EOK) {