Browse Source

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.
master
Lucas De Marchi 9 years ago committed by Randy Mackay
parent
commit
c397e550e2
  1. 2
      ArduCopter/setup.cpp

2
ArduCopter/setup.cpp

@ -132,7 +132,7 @@ int8_t Copter::setup_show(uint8_t argc, const Menu::arg *argv) @@ -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);

Loading…
Cancel
Save