From 98a2ed39667d7c496a596ca66d4732e9e717a1a3 Mon Sep 17 00:00:00 2001 From: sidey79 <7968127+sidey79@users.noreply.github.com> Date: Sat, 7 Oct 2017 00:59:33 +0200 Subject: [PATCH] signalDecoder.cpp make a reset if bufferMove wants to move more than in buffer --- src/_micro-api/libraries/signalDecoder/src/signalDecoder.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/_micro-api/libraries/signalDecoder/src/signalDecoder.cpp b/src/_micro-api/libraries/signalDecoder/src/signalDecoder.cpp index 626e249c..607e638a 100644 --- a/src/_micro-api/libraries/signalDecoder/src/signalDecoder.cpp +++ b/src/_micro-api/libraries/signalDecoder/src/signalDecoder.cpp @@ -36,7 +36,8 @@ void SignalDetectorClass::bufferMove(const uint8_t start) m_truncated = false; //DBG_PRINTLN(""); if (start > messageLen - 1 || start == 0) { - //DBG_PRINT(__FUNCTION__); DBG_PRINT(" start oor "); DBG_PRINT(start); DBG_PRINT(" "); DBG_PRINT(messageLen); + //DBG_PRINT(__FUNCTION__); DBG_PRINT(" start oor "); DBG_PRINT(start); DBG_PRINT(" "); DBG_PRINTLN(messageLen); + reset(); } else if (message.moveLeft(start)) {