From b71f23b93acdd3aa28066bd6edc7bcb63d518bfe Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 22 Jan 2016 16:37:10 +0100 Subject: display: Don't run (rather slow) scroll code in ISR --- src/main.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/main.cc') 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; -- cgit v1.2.3