Skip to content

Commit 939cf8b

Browse files
committed
try this instead
1 parent 290c97d commit 939cf8b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cpp/jddisplay.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,13 +253,18 @@ void JDDisplay::step(bool sendImage) {
253253
}
254254
}
255255

256-
if (displayServiceNum == 0 || !sendImage) {
256+
if (displayServiceNum == 0) {
257257
// poke the control service to enumerate
258258
queuePkt(JD_SERVICE_NUMBER_CTRL, JD_CMD_ADVERTISEMENT_DATA, 0);
259259
flushSend();
260260
return;
261261
}
262262

263+
if (!sendImage) {
264+
flushSend();
265+
return;
266+
}
267+
263268
if (palette) {
264269
{
265270
#define PALETTE_SIZE (16 * 4)

0 commit comments

Comments
 (0)