Skip to content

Commit 290c97d

Browse files
committed
try this hack
1 parent 0598b1c commit 290c97d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

cpp/jddisplay.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -251,13 +251,9 @@ void JDDisplay::step(bool sendImage) {
251251
if (!jd_shift_frame(&recvFrame))
252252
break;
253253
}
254-
if (!sendImage) {
255-
sendDone(this);
256-
return;
257-
}
258254
}
259255

260-
if (displayServiceNum == 0) {
256+
if (displayServiceNum == 0 || !sendImage) {
261257
// poke the control service to enumerate
262258
queuePkt(JD_SERVICE_NUMBER_CTRL, JD_CMD_ADVERTISEMENT_DATA, 0);
263259
flushSend();

0 commit comments

Comments
 (0)