mciantyre / teensy4-rs

Rust support for the Teensy 4
Apache License 2.0
291 stars 32 forks source link

Support logging messages with arbitrary length and embedded newlines #53

Closed dflemstr closed 4 years ago

dflemstr commented 4 years ago

Logging messages that are larger than 256 bytes currently cause panics. Also, if the messages contain newlines, they are not broken over several lines as might be expected.

This fixes a few things in the logging stack. I took the opportunity to remove one level of buffering which I don't think is needed, and simplified some type signatures.