@ -16,10 +16,7 @@ bool ble_through_proto_check_packet(zble_proto_packet_t *packet) {
return false;
}
uint8_t checksum = 0;
for (int i = 0; i < packet->packetlen - 2; i++) {
checksum += pu8[i];
uint8_t checksum = ble_through_proto_sum(packet);
if (checksum != pu8[packet->packetlen - 2]) {