Skip to content

Commit 4f2fda8

Browse files
committed
Fix crash when the command queue fills, can happen when sending LCD commands
1 parent f807c39 commit 4f2fda8

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
@@ -194,7 +194,7 @@ RapiSender::sendCmd(String &cmdstr, RapiCommandCompleteHandler callback, unsigne
194194
if(!_waitingForReply) {
195195
_sendNextCmd();
196196
}
197-
} else {
197+
} else if(nullptr != callback) {
198198
callback(RAPI_RESPONSE_QUEUE_FULL);
199199
}
200200
}

0 commit comments

Comments
 (0)