mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-22 04:54:47 +00:00
Merge pull request #1710 from meshtastic/serial-flush
Fix Serial comms with new framework
This commit is contained in:
commit
c0bfb979fd
@ -20,6 +20,9 @@ void consolePrintf(const char *format, ...)
|
|||||||
va_start(arg, format);
|
va_start(arg, format);
|
||||||
console->vprintf(format, arg);
|
console->vprintf(format, arg);
|
||||||
va_end(arg);
|
va_end(arg);
|
||||||
|
#ifdef ARCH_ESP32
|
||||||
|
console->flush();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
SerialConsole::SerialConsole() : StreamAPI(&Port), RedirectablePrint(&Port)
|
SerialConsole::SerialConsole() : StreamAPI(&Port), RedirectablePrint(&Port)
|
||||||
|
@ -103,10 +103,7 @@ void StreamAPI::emitTxBuffer(size_t len)
|
|||||||
|
|
||||||
auto totalLen = len + HEADER_LEN;
|
auto totalLen = len + HEADER_LEN;
|
||||||
stream->write(txBuf, totalLen);
|
stream->write(txBuf, totalLen);
|
||||||
/* for(size_t i = 0; i < totalLen; i++) {
|
stream->flush();
|
||||||
stream->write(txBuf[i]);
|
|
||||||
// stream->flush();
|
|
||||||
} */
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user