kopia lustrzana https://github.com/meshtastic/firmware
Merge pull request #123 from geeksville/screen
fix missing carriage returns. thanks to @gregwalters in #119pull/128/head
commit
29fd8dc7a5
|
@ -19,6 +19,13 @@ class SerialConsole : public StreamAPI, public RedirectablePrint
|
||||||
* debug serial output.
|
* debug serial output.
|
||||||
*/
|
*/
|
||||||
virtual void handleToRadio(const uint8_t *buf, size_t len);
|
virtual void handleToRadio(const uint8_t *buf, size_t len);
|
||||||
|
|
||||||
|
virtual size_t write(uint8_t c)
|
||||||
|
{
|
||||||
|
if (c == '\n') // prefix any newlines with carriage return
|
||||||
|
RedirectablePrint::write('\r');
|
||||||
|
return RedirectablePrint::write(c);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
extern SerialConsole console;
|
extern SerialConsole console;
|
||||||
|
|
Ładowanie…
Reference in New Issue