Skip to content

Commit 3a49463

Browse files
committed
qt: Fixed next header check in erase command callback
1 parent f4e799a commit 3a49463

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

qt/programmer.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -249,12 +249,10 @@ void Programmer::readRespEraseChipCb(int status)
249249
if (status == SerialPortReader::READ_ERROR)
250250
return;
251251

252-
if (readRespHeader(&readData, header))
253-
return;
254-
255252
while (readData.size())
256253
{
257-
header = (RespHeader *)readData.data();
254+
if (readRespHeader(&readData, header))
255+
return;
258256
switch (header->code)
259257
{
260258
case RESP_STATUS:

0 commit comments

Comments
 (0)