From c397e550e2564a90f87403bdb60c2c26fd602f49 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Mon, 26 Oct 2015 10:57:26 -0200 Subject: [PATCH] ArduCopter: fix warning due to wrong type "%s" expects a string. This works since the string in the struct is the first member so it's harmless. --- ArduCopter/setup.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduCopter/setup.cpp b/ArduCopter/setup.cpp index 4b8c379d9c..ae1d54a5ff 100644 --- a/ArduCopter/setup.cpp +++ b/ArduCopter/setup.cpp @@ -132,7 +132,7 @@ int8_t Copter::setup_show(uint8_t argc, const Menu::arg *argv) if(!param) { - cliSerial->printf("Parameter not found: '%s'\n", argv[1]); + cliSerial->printf("Parameter not found: '%s'\n", argv[1].str); return 0; } AP_Param::show(param, argv[1].str, type, cliSerial);