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
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2021-05-26 15:35:18 +0300
committerDavid Crocker <dcrocker@eschertech.com>2021-05-26 15:35:18 +0300
commit5c414694d3a4891e8296891709c3dac62d37d439 (patch)
treec4e83761eba64c80f2e1f0f6a7cb7dfb87251ca9
parent61a6bccf10c2eeed19427c8e9ffe09545be3de15 (diff)
Expanded movement message sequence numbers from 3 to 7 bits3.3RC3
-rw-r--r--src/CAN/CanMotion.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CAN/CanMotion.cpp b/src/CAN/CanMotion.cpp
index e1af5bb8..6c8e72b6 100644
--- a/src/CAN/CanMotion.cpp
+++ b/src/CAN/CanMotion.cpp
@@ -134,7 +134,7 @@ uint32_t CanMotion::FinishMovement(uint32_t moveStartTime) noexcept
buf->msg.moveLinear.whenToExecute = moveStartTime;
uint8_t& seq = nextSeq[buf->id.Dst()];
buf->msg.moveLinear.seq = seq;
- seq = (seq + 1) & 7;
+ seq = (seq + 1) & 0x7F;
buf->dataLength = buf->msg.moveLinear.GetActualDataLength();
CanMessageBuffer * const nextBuffer = buf->next; // must get this before sending the buffer, because sending the buffer releases it
CanInterface::SendMotion(buf); // queues the buffer for sending and frees it when done