* optimised: value-init not needed

This commit is contained in:
Scott Powell
2026-07-21 19:22:09 +10:00
parent 4157e43ace
commit 78240e9477
+1 -1
View File
@@ -208,7 +208,7 @@ size_t SerialBLEInterface::checkRecvFrame(uint8_t dest[]) {
}
}
Frame frame = {};
Frame frame;
if (xQueueReceive(recv_queue, &frame, 0) == pdTRUE) {
memcpy(dest, frame.buf, frame.len);
BLE_DEBUG_PRINTLN("readBytes: sz=%d, hdr=%d", (uint32_t) frame.len, (uint32_t) dest[0]);