diff options
author | Sebastian Muszytowski <sebastian@muszytowski.net> | 2016-01-22 18:52:10 +0100 |
---|---|---|
committer | Sebastian Muszytowski <sebastian@muszytowski.net> | 2016-01-22 18:52:10 +0100 |
commit | 724f650b968e4029dfdd0f355cc8669e098b6880 (patch) | |
tree | 939baef3b38c1844d0dc35882b640b3b6def7a94 /src/system.cc | |
parent | 6e41844bfa547a69a2fbd8effb09aae15b203bff (diff) | |
parent | 84758ec540877a79d2c9a4403b2023aa5d31eb17 (diff) |
Merge branch 'master' of github.com:blinkenrocket/firmware
Diffstat (limited to 'src/system.cc')
-rw-r--r-- | src/system.cc | 6 |
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); } } } |