AP_RPM: fixed formatting of pin arming check

This commit is contained in:
Andrew Tridgell 2021-08-04 10:24:17 +10:00
parent a56db06efb
commit 45f6b16dec
1 changed files with 1 additions and 1 deletions

View File

@ -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;