Unverified Commit 26f1bdf0 authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #8566 from DonLakeFlyer/PlanSetWaypoint

Fix bad cast causing loss of precision with sequence numbers
parents d6272a76 1da45db9
...@@ -3270,7 +3270,7 @@ void Vehicle::setCurrentMissionSequence(int seq) ...@@ -3270,7 +3270,7 @@ void Vehicle::setCurrentMissionSequence(int seq)
&msg, &msg,
static_cast<uint8_t>(id()), static_cast<uint8_t>(id()),
_compID, _compID,
static_cast<uint8_t>(seq)); static_cast<uint16_t>(seq));
sendMessageOnLink(priorityLink(), msg); sendMessageOnLink(priorityLink(), msg);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment