diff options
author | Christian Hammacher <bmasterc@gmail.com> | 2022-03-09 17:29:42 +0300 |
---|---|---|
committer | Christian Hammacher <bmasterc@gmail.com> | 2022-03-09 17:29:42 +0300 |
commit | b19519242f27830532bddb3b5ef9dd877338c812 (patch) | |
tree | 4ee43a5cc59b73d92388f05cbdb30f4b10d01813 | |
parent | 2ac526f56cfcd2adcf29ed5b7e10e38db6305618 (diff) |
Fixed another bug in SBC mode
Bug fix: Under rare circumstances, the updated code buffer space wasn't announced
-rw-r--r-- | src/SBC/SbcInterface.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SBC/SbcInterface.cpp b/src/SBC/SbcInterface.cpp index bb5a4dee..1bb3e0ff 100644 --- a/src/SBC/SbcInterface.cpp +++ b/src/SBC/SbcInterface.cpp @@ -1857,6 +1857,7 @@ void SbcInterface::InvalidateBufferedCodes(GCodeChannel channel) noexcept if (codeHeader->channel == channel.RawValue()) { bufHeader->isPending = false; + sendBufferUpdate = true; } else { @@ -1867,7 +1868,6 @@ void SbcInterface::InvalidateBufferedCodes(GCodeChannel channel) noexcept if (updateRxPointer) { - sendBufferUpdate = true; if (readPointer == txPointer && txEnd == 0) { // Buffer is empty again, reset the pointers |