commit | e9b1ebba9d720374700d3cb2537fcd2725c50a84 | [log] [tgz] |
---|---|---|
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | Sun Nov 24 22:00:43 2013 +0100 |
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | Tue Nov 26 21:00:51 2013 +0100 |
tree | c9cd8640798f39723cc60d62b8953f576904499e | |
parent | 270f7fce1d5558f66277cbb4c08e3e7cfc4d9c4c [diff] [blame] |
rlc: Test the basic of the gprs_rlc_v_n code for remembering the state
diff --git a/src/rlc.h b/src/rlc.h index d9e0e6c..e1974e4 100644 --- a/src/rlc.h +++ b/src/rlc.h
@@ -130,6 +130,8 @@ }; struct gprs_rlc_v_n { + void reset(); + void mark_received(int index); void mark_missing(int index); @@ -357,5 +359,8 @@ 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; }