From 83d6a0ee679e73c89d0ba84602d3052527726230 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 22 Jan 2016 16:27:33 +0100 Subject: make display buffer private, add separate modem receive buffer --- src/system.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/system.cc') diff --git a/src/system.cc b/src/system.cc index 6c44a30..5c7b177 100644 --- a/src/system.cc +++ b/src/system.cc @@ -12,6 +12,8 @@ System rocket; +char disp_buf[128]; + void System::loop() { static uint8_t i = 0; @@ -70,12 +72,12 @@ void System::loop() while (modem.buffer_available()) { modem_char = modem.buffer_get(); - display.string[i++] = modem_char; + disp_buf[i++] = modem_char; if (i == 127) { i = 0; } else if (modem_char == 0) { i = 0; - display.reset(); + display.setString(disp_buf); } } } -- cgit v1.2.3