summaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-01-22 16:37:10 +0100
committerDaniel Friesel <derf@finalrewind.org>2016-01-22 16:37:32 +0100
commitb71f23b93acdd3aa28066bd6edc7bcb63d518bfe (patch)
tree76003f9fbb17e4b9c7d7806380052c0e6b2cf41e /src/main.cc
parent83d6a0ee679e73c89d0ba84602d3052527726230 (diff)
display: Don't run (rather slow) scroll code in ISR
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main.cc b/src/main.cc
index aefad1c..78cbd88 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -31,9 +31,14 @@ int main (void)
// nothing to do here, go to idle to save power
SMCR = _BV(SE);
asm("sleep");
- // The display timer causes a wakeup after 256µs. Run the system
- // loop after the timer's ISR is done.
+ /*
+ * The display timer causes a wakeup after 256µs. Run the system
+ * loop after the timer's ISR is done.
+ * The Modem also causes wakeups, which is pretty convenient since
+ * it means we can immediately process the received data.
+ */
rocket.loop();
+ display.scroll();
}
return 0;