Skip to content

Commit 67a1186

Browse files
committed
Fixed issue where sendCmdSync could sometime faile to read the RAPI result.
Mostly happened when building with IDF
1 parent 330c58b commit 67a1186

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/RapiSender.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ RapiSender::sendCmdSync(String &cmdstr, unsigned long timeout)
218218
{
219219
int ret;
220220
bool finished;
221-
} resultData;
221+
} resultData = {0, false};
222222
SendCmdSyncData *result = &resultData;
223223

224224
sendCmd(cmdstr, [result](int ret) {

0 commit comments

Comments
 (0)