summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fecmodem.cc2
-rw-r--r--src/modem.cc2
-rw-r--r--src/modem.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/fecmodem.cc b/src/fecmodem.cc
index 52271fd..f1b269b 100644
--- a/src/fecmodem.cc
+++ b/src/fecmodem.cc
@@ -50,7 +50,7 @@ uint8_t FECModem::hamming2416(uint8_t *byte1, uint8_t *byte2, uint8_t parity)
uint8_t FECModem::buffer_available()
{
- if (rxWasReset())
+ if (newTransmission())
hammingState = FIRST_BYTE;
if (this->Modem::buffer_available() >= 3)
return 2;
diff --git a/src/modem.cc b/src/modem.cc
index dc183b1..a826306 100644
--- a/src/modem.cc
+++ b/src/modem.cc
@@ -14,7 +14,7 @@
extern FECModem modem;
-bool Modem::rxWasReset()
+bool Modem::newTransmission()
{
if (new_transmission) {
new_transmission = false;
diff --git a/src/modem.h b/src/modem.h
index 284edeb..6b40ac6 100644
--- a/src/modem.h
+++ b/src/modem.h
@@ -37,7 +37,7 @@ class Modem {
public:
Modem() {new_transmission = false;};
- bool rxWasReset();
+ bool newTransmission();
/**
* Checks if there are unprocessed bytes in the modem receive buffer.