summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-02-13 19:36:24 +0100
committerDaniel Friesel <derf@finalrewind.org>2016-02-13 19:36:24 +0100
commitc751cceda9fc6026be2ec520886624f63823c4cc (patch)
tree894153a645799068dd35273f2bfab4bb57fc6f6e
parent34e6e0c40457afe9978530500d219245e6d801e4 (diff)
rename modem.rxWasReset() to more appropriate newTransmission()
-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.