From 698ef7385ff8e661288c66509b04d9b920bc13f7 Mon Sep 17 00:00:00 2001 From: Markus Koch Date: Sat, 13 Jan 2018 09:49:06 +0100 Subject: [PATCH] Translate a zero byte in text mode to a space --- hcs12ss59t.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hcs12ss59t.c b/hcs12ss59t.c index 0cf9197..3157781 100644 --- a/hcs12ss59t.c +++ b/hcs12ss59t.c @@ -22,6 +22,9 @@ char hcs12ss59t_get_char(char c) c += 16; else if (c >= 'a' && c <= 'z') c -= 80; + else if (c == 0) { + c = ' ' - 48; + } else c = 79; return c;