Skip to content

Commit 78240e9

Browse files
committed
* optimised: value-init not needed
1 parent 4157e43 commit 78240e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/helpers/esp32/SerialBLEInterface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ size_t SerialBLEInterface::checkRecvFrame(uint8_t dest[]) {
208208
}
209209
}
210210

211-
Frame frame = {};
211+
Frame frame;
212212
if (xQueueReceive(recv_queue, &frame, 0) == pdTRUE) {
213213
memcpy(dest, frame.buf, frame.len);
214214
BLE_DEBUG_PRINTLN("readBytes: sz=%d, hdr=%d", (uint32_t) frame.len, (uint32_t) dest[0]);

0 commit comments

Comments
 (0)