diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-11-24 22:00:43 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-11-26 21:00:51 +0100 |
commit | e9b1ebba9d720374700d3cb2537fcd2725c50a84 (patch) | |
tree | c9cd8640798f39723cc60d62b8953f576904499e /src/rlc.h | |
parent | 270f7fce1d5558f66277cbb4c08e3e7cfc4d9c4c (diff) |
rlc: Test the basic of the gprs_rlc_v_n code for remembering the state
Diffstat (limited to 'src/rlc.h')
-rw-r--r-- | src/rlc.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -130,6 +130,8 @@ private: }; struct gprs_rlc_v_n { + void reset(); + void mark_received(int index); void mark_missing(int index); @@ -357,5 +359,8 @@ inline bool gprs_rlc_v_n::is_received(int index) const inline char gprs_rlc_v_n::state(int index) const { - return m_v_n[index]; + char bit = m_v_n[index]; + if (bit == '\0') + return ' '; + return bit; } |