This commit is contained in:
0m.ax 2025-07-19 02:28:56 +02:00
parent 8f67174500
commit 6d503a1e62

View file

@ -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();
}
}