summaryrefslogtreecommitdiff
path: root/src/system.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/system.cc')
-rw-r--r--src/system.cc6
1 files changed, 4 insertions, 2 deletions
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);
}
}
}