diff --git a/libraries/AP_Button/AP_Button.cpp b/libraries/AP_Button/AP_Button.cpp index a49d7fcaa1..b6fd87483d 100644 --- a/libraries/AP_Button/AP_Button.cpp +++ b/libraries/AP_Button/AP_Button.cpp @@ -376,7 +376,7 @@ bool AP_Button::arming_checks(size_t buflen, char *buffer) const } for (uint8_t i=0; ivalid_pin(pin[i])) { - hal.util->snprintf(buffer, buflen, "BTN_PIN%u invalid", i + 1, pin[i]); + hal.util->snprintf(buffer, buflen, "BTN_PIN%u %d invalid", unsigned(i + 1), int(pin[i].get())); return false; } }