Browse Source

update

master^2^2
zhaohe 1 year ago
parent
commit
af658639c6
  1. 2
      ble_through/ble_proto_utils.c
  2. 2
      ble_through/ble_proto_utils.h

2
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

2
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 {

Loading…
Cancel
Save