Menu: fixed example warnings

This commit is contained in:
Andrew Tridgell 2012-12-19 11:18:08 +11:00
parent a76688e630
commit 29f5e346c2

View File

@ -24,12 +24,14 @@ menu_test(uint8_t argc, const Menu::arg *argv)
hal.console->printf("%d: int %ld float ", i, argv[i].i); hal.console->printf("%d: int %ld float ", i, argv[i].i);
hal.console->println(argv[i].f, 6); // gross hal.console->println(argv[i].f, 6); // gross
} }
return 0;
} }
int8_t int8_t
menu_auto(uint8_t argc, const Menu::arg *argv) menu_auto(uint8_t argc, const Menu::arg *argv)
{ {
hal.console->println("auto text"); hal.console->println("auto text");
return 0;
} }
const struct Menu::command top_menu_commands[] PROGMEM = { const struct Menu::command top_menu_commands[] PROGMEM = {