From af658639c6810b2b6f88a82a830a8baa0fd659ae Mon Sep 17 00:00:00 2001 From: zhaohe Date: Wed, 10 Jul 2024 21:34:38 +0800 Subject: [PATCH] update --- ble_through/ble_proto_utils.c | 2 ++ ble_through/ble_proto_utils.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ble_through/ble_proto_utils.c b/ble_through/ble_proto_utils.c index 9f08738..19394d0 100644 --- a/ble_through/ble_proto_utils.c +++ b/ble_through/ble_proto_utils.c @@ -39,6 +39,7 @@ uint8_t ble_through_proto_sum(ble_through_proto_t *packet) { { .cmd = _cmd, .length = BLE_PACKET_BASE_SIZE() + sizeof(content) } #define EMPTY_CONTENT uint8_t +#if 0 static cmd_info_t cmdinfos[] = { ITERM(kproto_cmd_ble_master_reset, EMPTY_CONTENT), @@ -76,3 +77,4 @@ cmd_info_t *getcmdinfo(uint8_t cmd) { } return NULL; } +#endif diff --git a/ble_through/ble_proto_utils.h b/ble_through/ble_proto_utils.h index 21fa503..da240f8 100644 --- a/ble_through/ble_proto_utils.h +++ b/ble_through/ble_proto_utils.h @@ -18,7 +18,7 @@ uint8_t ble_through_proto_sum(ble_through_proto_t *packet); #define BLE_THROUGH_PACKET_SET_CHECKSUM(packet) \ { \ uint8_t *__data = (uint8_t *)packet; \ - __data[packet->packetlen - 2] = hand_acid_ble_proto_sum(packet); \ + __data[packet->packetlen - 2] = ble_through_proto_sum(packet); \ } typedef struct {