Browse Source

Fix bad cast causing loss of precision with sequence numbers

QGC4.4
DoinLakeFlyer 5 years ago
parent
commit
1da45db95d
  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