Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Hammacher <bmasterc@gmail.com>2022-03-09 17:29:42 +0300
committerChristian Hammacher <bmasterc@gmail.com>2022-03-09 17:29:42 +0300
commitb19519242f27830532bddb3b5ef9dd877338c812 (patch)
tree4ee43a5cc59b73d92388f05cbdb30f4b10d01813 /src
parent2ac526f56cfcd2adcf29ed5b7e10e38db6305618 (diff)
Fixed another bug in SBC mode
Bug fix: Under rare circumstances, the updated code buffer space wasn't announced
Diffstat (limited to 'src')
-rw-r--r--src/SBC/SbcInterface.cpp2
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