Debug-log received characters

This commit is contained in:
mars 2022-10-05 15:51:47 -06:00
parent 7129429e88
commit a19fca364e
1 changed files with 2 additions and 0 deletions

View File

@ -354,6 +354,8 @@ impl App {
}
pub fn on_received_character(&mut self, c: char) {
log::debug!("Received character: {:?}", c);
let mut bytes = [0u8; 4];
let len = c.encode_utf8(&mut bytes).len();
let cow = Cow::Owned(bytes[0..len].into());