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.
This commit is contained in:
Lucas De Marchi 2015-10-26 10:57:26 -02:00 committed by Randy Mackay
parent 5244559010
commit c397e550e2
1 changed files with 1 additions and 1 deletions

View File

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