We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9d1e55 commit 176f92bCopy full SHA for 176f92b
libraries/OpenThread/src/OThreadCLI.cpp
@@ -354,7 +354,7 @@ void OpenThreadCLI::end() {
354
355
356
size_t OpenThreadCLI::write(uint8_t c) {
357
- if (rx_queue == NULL) {
+ if (tx_queue == NULL) {
358
return 0;
359
}
360
if (xQueueSend(tx_queue, &c, 0) != pdPASS) {
@@ -416,6 +416,9 @@ int OpenThreadCLI::read(void) {
416
417
418
void OpenThreadCLI::flush() {
419
420
+ return;
421
+ }
422
// wait for the TX Queue to be empty
423
while (uxQueueMessagesWaiting(tx_queue));
424
0 commit comments