summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-02-20 19:25:50 +0100
committerDaniel Friesel <derf@finalrewind.org>2016-02-20 19:25:50 +0100
commitea538b2a622c764642837e42b793f9eae7df2c2a (patch)
tree5cead51d719ce812b84658aa3b0bdcd1fe625455 /src
parentcf0ec112c87f25e546295a4eb07f218ff912d0a8 (diff)
system: Reset state machine after wakeup
Diffstat (limited to 'src')
-rw-r--r--src/system.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/system.cc b/src/system.cc
index a12dd71..3dc21d9 100644
--- a/src/system.cc
+++ b/src/system.cc
@@ -204,6 +204,9 @@ void System::shutdown()
// ... and modem
modem.enable();
+
+ // also, reset state machine
+ rxExpect = START1;
}
ISR(PCINT1_vect)