summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/system.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/system.cc b/src/system.cc
index 864f98a..eb2caf6 100644
--- a/src/system.cc
+++ b/src/system.cc
@@ -60,8 +60,10 @@ void System::receive(void)
rxExpect = START2;
break;
case START2:
- if (rx_byte == 0x99)
+ if (rx_byte == 0x99) {
rxExpect = PATTERN1;
+ storage.reset();
+ }
break;
case PATTERN1:
if (rx_byte == 0xa9)