Browse Source
>= out_len
It shouldn't ever happen that it's less so why not
pull/1902/head
Wessel Nieboer
3 months ago
No known key found for this signature in database
GPG Key ID: 929C8E45E33B5FD2
1 changed files with
1 additions and
1 deletions
-
examples/companion_radio/MyMesh.cpp
|
|
|
@ -1372,7 +1372,7 @@ void MyMesh::handleCmdFrame(size_t len) { |
|
|
|
} else if (cmd_frame[0] == CMD_SYNC_NEXT_MESSAGE) { |
|
|
|
int out_len; |
|
|
|
if ((out_len = peekOfflineQueue(out_frame)) > 0) { |
|
|
|
if (_serial->writeFrame(out_frame, out_len) > 0) { |
|
|
|
if (_serial->writeFrame(out_frame, out_len) >= out_len) { |
|
|
|
popOfflineQueue(); |
|
|
|
#ifdef DISPLAY_CLASS |
|
|
|
if (_ui) _ui->msgRead(offline_queue_len); |
|
|
|
|