Skip to content

Commit 5598aee

Browse files
committed
fix(Comm): revert JsonDecoder change to restore USB comms
1 parent fd2750a commit 5598aee

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/Comm/JsonDecoder.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,12 @@ namespace Comm
242242
}
243243
m_seq = nullptr;
244244
}
245+
246+
m_key.Clear();
247+
m_flags.Clear();
248+
249+
responseType = ResponseType::unknown;
250+
responseData = nullptr;
245251
}
246252

247253
// Public functions called by the SerialIo module
@@ -655,9 +661,9 @@ namespace Comm
655661
{
656662
ZoneScoped;
657663
LOG_DBG("checking {:d} chars", len);
658-
LOG_VERBOSE("rxBuffer: {:s}", std::string_view(reinterpret_cast<const char*>(rxBuffer), len));
664+
LOG_DBG("rxBuffer: {:s}", std::string_view(reinterpret_cast<const char*>(rxBuffer), len));
659665

660-
Reset();
666+
m_nextOut = 0;
661667
while (m_nextOut < len)
662668
{
663669
char c = rxBuffer[m_nextOut];

0 commit comments

Comments
 (0)