diff options
-rw-r--r-- | src/system.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/system.cc b/src/system.cc index 1a0522d..537f0b9 100644 --- a/src/system.cc +++ b/src/system.cc @@ -67,9 +67,11 @@ void System::loop() if (i == 127) { i = 0; } else if (modem_byte == 0) { - ohai.data = disp_buf; - ohai.length = i-1; - display.show(&ohai); + if (i > 1) { // workaround for trailing double null bytes + ohai.data = disp_buf; + ohai.length = i-1; + display.show(&ohai); + } i = 0; } } |