mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-09 01:18:29 -04:00
Sub: tighten type of result variable in handleMessage
This commit is contained in:
parent
398d07a68a
commit
9040bb5f97
@ -871,7 +871,7 @@ void GCS_MAVLINK_Sub::handle_change_alt_request(AP_Mission::Mission_Command &cmd
|
|||||||
|
|
||||||
void GCS_MAVLINK_Sub::handleMessage(mavlink_message_t* msg)
|
void GCS_MAVLINK_Sub::handleMessage(mavlink_message_t* msg)
|
||||||
{
|
{
|
||||||
uint8_t result = MAV_RESULT_FAILED; // assume failure. Each messages id is responsible for return ACK or NAK if required
|
MAV_RESULT result = MAV_RESULT_FAILED; // assume failure. Each messages id is responsible for return ACK or NAK if required
|
||||||
|
|
||||||
switch (msg->msgid) {
|
switch (msg->msgid) {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user