From 2b13be90eba6fb280bb38e67386d528c0ed93082 Mon Sep 17 00:00:00 2001 From: jwhui Date: Wed, 18 Apr 2007 15:12:45 +0000 Subject: [PATCH] - Fix bug found by Guillermo De Cesco. The buffer pointer was not being updated properly when reading across multiple records. --- tos/chips/stm25p/Stm25pLogP.nc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tos/chips/stm25p/Stm25pLogP.nc b/tos/chips/stm25p/Stm25pLogP.nc index 192b01b3..d00dee06 100644 --- a/tos/chips/stm25p/Stm25pLogP.nc +++ b/tos/chips/stm25p/Stm25pLogP.nc @@ -290,7 +290,7 @@ implementation { read_addr &= ~BLOCK_MASK; } else { - buf = m_log_state[ client ].buf; + buf = m_log_state[ client ].buf + m_log_state[ client ].len - m_len; // truncate if record is shorter than requested length if ( m_log_info[ client ].remaining < m_len ) len = m_log_info[ client ].remaining; -- 2.39.2