diff options
author | Daniel Friesel <derf@finalrewind.org> | 2016-01-15 18:12:51 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2016-01-15 18:12:51 +0100 |
commit | fd6f265cbc7270bd69b4f8b68d7ec6c436e67d39 (patch) | |
tree | 4706347551e5579080b8728c857d0109768e2644 /src | |
parent | 2575089632baea41591ffa794914455d35b5d52a (diff) |
more testfoo
Diffstat (limited to 'src')
-rw-r--r-- | src/system.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/system.cc b/src/system.cc index 8b02275..9aaa62b 100644 --- a/src/system.cc +++ b/src/system.cc @@ -16,6 +16,7 @@ extern volatile uint8_t disp[8]; void System::loop() { + static uint8_t i = 0; // both buttons are pressed if ((PINC & (_BV(PC3) | _BV(PC7))) == 0) { // naptime! @@ -64,7 +65,9 @@ void System::loop() } if (modem.buffer_available()) { - disp[0] = modem.buffer_get(); + disp[i++] = modem.buffer_get(); + if (i == 7) + i = 0; } } |