Closed TDHolmes closed 3 years ago
hi @mvirkkunen, any thoughts on this PR?
As the code is this will always lose data with no indication when the buffer is full. I'm not sure if that's a good thing.
I'm also not sure if it's even possible to implement fmt::Write
in a usable way like @Disasm mentioned. At least not with now usb-device
works currently.
Thanks for the feedback. Not sure how to move forward with this one, so closing.
Implements the core::fmt::Write trait to enable things like
serial.write_fmt(format_args!("{}\r\n", val));
(see working example here)