aboutsummaryrefslogtreecommitdiffstats
path: root/src/llc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/llc.h')
-rw-r--r--src/llc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/llc.h b/src/llc.h
index f1692f4b..f50419c8 100644
--- a/src/llc.h
+++ b/src/llc.h
@@ -63,7 +63,7 @@ inline uint16_t gprs_llc::chunk_size() const
inline uint16_t gprs_llc::remaining_space() const
{
- return LLC_MAX_LEN - m_index;
+ return LLC_MAX_LEN - m_length;
}
inline uint16_t gprs_llc::frame_length() const
@@ -85,5 +85,5 @@ inline void gprs_llc::consume(uint8_t *data, size_t len)
inline bool gprs_llc::fits_in_current_frame(uint8_t chunk_size) const
{
- return m_index + chunk_size <= LLC_MAX_LEN;
+ return m_length + chunk_size <= LLC_MAX_LEN;
}