diff options
author | Daniel Friesel <derf@finalrewind.org> | 2016-01-15 16:51:19 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2016-01-15 16:51:19 +0100 |
commit | ab36943fa7276d20f8b6e14ae2352db0a3daec04 (patch) | |
tree | 25a2ec3c792c68760103619ba77ffc1137dbcf33 /src/main.cc | |
parent | 9e66404e8e704037aff06713ed0cdfa43fc1b220 (diff) |
C++-ize modem code (a little bit)
Diffstat (limited to 'src/main.cc')
-rw-r--r-- | src/main.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.cc b/src/main.cc index c51483d..9bf9f4e 100644 --- a/src/main.cc +++ b/src/main.cc @@ -5,6 +5,7 @@ #include <stdlib.h> #include "font2.h" +#include "modem.h" #define SHUTDOWN_THRESHOLD 2048 @@ -89,6 +90,10 @@ void System::loop() else { want_shutdown = 0; } + + if (modem.buffer_available()) { + disp[0] = modem.buffer_get(); + } } int main (void) @@ -158,6 +163,8 @@ int main (void) disp[31] = 0x00; #endif + modem.init(); + sei(); while (1) { |