diff options
author | David Crocker <dcrocker@eschertech.com> | 2021-05-26 15:35:18 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2021-05-26 15:35:18 +0300 |
commit | 5c414694d3a4891e8296891709c3dac62d37d439 (patch) | |
tree | c4e83761eba64c80f2e1f0f6a7cb7dfb87251ca9 | |
parent | 61a6bccf10c2eeed19427c8e9ffe09545be3de15 (diff) |
Expanded movement message sequence numbers from 3 to 7 bits3.3RC3
-rw-r--r-- | src/CAN/CanMotion.cpp | 2 |
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 |