summaryrefslogtreecommitdiff
path: root/src/fecmodem.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/fecmodem.cc')
-rw-r--r--src/fecmodem.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/fecmodem.cc b/src/fecmodem.cc
index 85221dc..a75c27b 100644
--- a/src/fecmodem.cc
+++ b/src/fecmodem.cc
@@ -58,6 +58,12 @@ uint8_t FECModem::hamming2416(uint8_t *byte1, uint8_t *byte2, uint8_t parity)
return 0;
}
+void FECModem::enable()
+{
+ this->Modem::enable();
+ hammingState = FIRST_BYTE;
+}
+
uint8_t FECModem::buffer_available()
{
// XXX this reset implementation is _completely_ broken