mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-07-23 21:42:45 +00:00
* optimised: value-init not needed
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user