diff options
author | Daniel Friesel <derf@finalrewind.org> | 2016-02-12 20:46:34 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2016-02-12 20:46:34 +0100 |
commit | 712950db5e0c08d7b31a5074765d507f73da423c (patch) | |
tree | 575ae37257e87e1fe11581be5fe45a2a592d2eaf /src/modem.h | |
parent | 285952ea1dc6ac40d67820844033d6115ab7e404 (diff) |
quick&dirty hamming buffer implementation.
Diffstat (limited to 'src/modem.h')
-rw-r--r-- | src/modem.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modem.h b/src/modem.h index 4040c92..284edeb 100644 --- a/src/modem.h +++ b/src/modem.h @@ -32,9 +32,12 @@ class Modem { uint8_t buffer_head; uint8_t buffer_tail; uint8_t buffer[MODEM_BUFFER_SIZE]; + bool new_transmission; void buffer_put(const uint8_t c); public: - Modem() {}; + Modem() {new_transmission = false;}; + + bool rxWasReset(); /** * Checks if there are unprocessed bytes in the modem receive buffer. |