mirror of https://github.com/ArduPilot/ardupilot
AP_RPM: fixed formatting of pin arming check
This commit is contained in:
parent
a56db06efb
commit
45f6b16dec
|
@ -235,7 +235,7 @@ bool AP_RPM::arming_checks(size_t buflen, char *buffer) const
|
|||
return false;
|
||||
}
|
||||
if (!hal.gpio->valid_pin(_pin[i])) {
|
||||
hal.util->snprintf(buffer, buflen, "RPM[%u] pin %d invalid", i + 1, _pin[i]);
|
||||
hal.util->snprintf(buffer, buflen, "RPM[%u] pin %d invalid", unsigned(i + 1), int(_pin[i].get()));
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue