Browse Source

AP_Parachute: fixed printf format errors

gps-1.3.1
Andrew Tridgell 4 years ago
parent
commit
68c1f0db35
  1. 2
      libraries/AP_Parachute/AP_Parachute.cpp

2
libraries/AP_Parachute/AP_Parachute.cpp

@ -206,7 +206,7 @@ bool AP_Parachute::arming_checks(size_t buflen, char *buffer) const @@ -206,7 +206,7 @@ bool AP_Parachute::arming_checks(size_t buflen, char *buffer) const
return false;
}
} else if (!_relay.enabled(_release_type)) {
hal.util->snprintf(buffer, buflen, "Chute invalid relay %d", _release_type);
hal.util->snprintf(buffer, buflen, "Chute invalid relay %d", int(_release_type));
return false;
}
}

Loading…
Cancel
Save