From a56db06efbd0ffe62739c5291ce698c7da9def17 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 4 Aug 2021 10:24:17 +1000 Subject: [PATCH] AP_Relay: fixed formatting of pin arming check --- libraries/AP_Relay/AP_Relay.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Relay/AP_Relay.cpp b/libraries/AP_Relay/AP_Relay.cpp index fb0a1db612..a7679050a2 100644 --- a/libraries/AP_Relay/AP_Relay.cpp +++ b/libraries/AP_Relay/AP_Relay.cpp @@ -157,7 +157,7 @@ bool AP_Relay::arming_checks(size_t buflen, char *buffer) const { for (uint8_t i=0; ivalid_pin(_pin[i])) { - hal.util->snprintf(buffer, buflen, "Relay[%u] pin %d invalid", i + 1, _pin[i]); + hal.util->snprintf(buffer, buflen, "Relay[%u] pin %d invalid", unsigned(i + 1), int(_pin[i].get())); return false; } }