Browse Source

Merge pull request #8566 from DonLakeFlyer/PlanSetWaypoint

Fix bad cast causing loss of precision with sequence numbers
QGC4.4
Don Gagne 5 years ago committed by GitHub
parent
commit
26f1bdf074
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Vehicle/Vehicle.cc

2
src/Vehicle/Vehicle.cc

@ -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);
} }

Loading…
Cancel
Save