Reworked BLE according to v0.11 of the KTag Beacon Specification #2

Merged
Joe merged 13 commits from New_BLE into main 2025-06-08 21:52:30 +00:00
Showing only changes of commit c11206e625 - Show all commits

View file

@ -326,10 +326,6 @@ void BLE_UpdateHelloPacket()
{ {
strcpy(device_name, "Anonymous"); strcpy(device_name, "Anonymous");
} }
size_t len = strlen(device_name);
if (len < sizeof(device_name)) {
memset(device_name + len, 0x00, sizeof(device_name) - len);
}
Advertising_Data.length = BLE_KTAG_PACKET_TOTAL_SIZE; Advertising_Data.length = BLE_KTAG_PACKET_TOTAL_SIZE;