From 45f6b16dec72dfacc7fb0c42e9152d10fd482e72 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 4 Aug 2021 10:24:17 +1000 Subject: [PATCH] AP_RPM: fixed formatting of pin arming check --- libraries/AP_RPM/AP_RPM.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_RPM/AP_RPM.cpp b/libraries/AP_RPM/AP_RPM.cpp index 59008aef71..f7cdcdc7ab 100644 --- a/libraries/AP_RPM/AP_RPM.cpp +++ b/libraries/AP_RPM/AP_RPM.cpp @@ -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;