diff --git a/src/main.rs b/src/main.rs index cb2fd62..81577e5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -5,7 +5,7 @@ use std::time::Duration; // Constants from the C code const QUEUE_LEN: usize = 1000; -const MSG_PAYLOAD_SIZE: usize = 7 * 160; +const MSG_PAYLOAD_SIZE: usize = 7 * 211; const MSGSIZE: usize = 2 + MSG_PAYLOAD_SIZE; const DISPLAY_HOST: &str = "100.65.0.2"; @@ -255,7 +255,7 @@ impl Display { buf[6] = b; self.pos_in_buf += 1; - if self.pos_in_buf == 160 { + if self.pos_in_buf == 211 { self.flush_frame(); } }