diff options
author | Daniel Friesel <derf@finalrewind.org> | 2016-02-13 19:36:24 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2016-02-13 19:36:24 +0100 |
commit | c751cceda9fc6026be2ec520886624f63823c4cc (patch) | |
tree | 894153a645799068dd35273f2bfab4bb57fc6f6e | |
parent | 34e6e0c40457afe9978530500d219245e6d801e4 (diff) |
rename modem.rxWasReset() to more appropriate newTransmission()
-rw-r--r-- | src/fecmodem.cc | 2 | ||||
-rw-r--r-- | src/modem.cc | 2 | ||||
-rw-r--r-- | src/modem.h | 2 |
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. |