From fd6f265cbc7270bd69b4f8b68d7ec6c436e67d39 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 15 Jan 2016 18:12:51 +0100 Subject: more testfoo --- src/system.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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; } } -- cgit v1.2.3