mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-06 19:00:27 +08:00
AP_RPM: fixed formatting of pin arming check
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user