Copter: remove battery setup from CLI
This commit is contained in:
parent
3bf1352701
commit
09756e16b7
@ -4,7 +4,6 @@
|
|||||||
|
|
||||||
// Functions called from the setup menu
|
// Functions called from the setup menu
|
||||||
static int8_t setup_accel_scale (uint8_t argc, const Menu::arg *argv);
|
static int8_t setup_accel_scale (uint8_t argc, const Menu::arg *argv);
|
||||||
static int8_t setup_batt_monitor (uint8_t argc, const Menu::arg *argv);
|
|
||||||
static int8_t setup_compass (uint8_t argc, const Menu::arg *argv);
|
static int8_t setup_compass (uint8_t argc, const Menu::arg *argv);
|
||||||
static int8_t setup_compassmot (uint8_t argc, const Menu::arg *argv);
|
static int8_t setup_compassmot (uint8_t argc, const Menu::arg *argv);
|
||||||
static int8_t setup_declination (uint8_t argc, const Menu::arg *argv);
|
static int8_t setup_declination (uint8_t argc, const Menu::arg *argv);
|
||||||
@ -29,7 +28,6 @@ const struct Menu::command setup_menu_commands[] PROGMEM = {
|
|||||||
// command function called
|
// command function called
|
||||||
// ======= ===============
|
// ======= ===============
|
||||||
{"accel", setup_accel_scale},
|
{"accel", setup_accel_scale},
|
||||||
{"battery", setup_batt_monitor},
|
|
||||||
{"compass", setup_compass},
|
{"compass", setup_compass},
|
||||||
{"compassmot", setup_compassmot},
|
{"compassmot", setup_compassmot},
|
||||||
{"declination", setup_declination},
|
{"declination", setup_declination},
|
||||||
@ -89,23 +87,6 @@ setup_accel_scale(uint8_t argc, const Menu::arg *argv)
|
|||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int8_t
|
|
||||||
setup_batt_monitor(uint8_t argc, const Menu::arg *argv)
|
|
||||||
{
|
|
||||||
if (!strcmp_P(argv[1].str, PSTR("off"))) {
|
|
||||||
g.battery_monitoring.set_and_save(0);
|
|
||||||
|
|
||||||
} else if(argv[1].i > 0 && argv[1].i <= 4) {
|
|
||||||
g.battery_monitoring.set_and_save(argv[1].i);
|
|
||||||
|
|
||||||
} else {
|
|
||||||
cliSerial->printf_P(PSTR("\nOp: off, 3-4"));
|
|
||||||
}
|
|
||||||
|
|
||||||
report_batt_monitor();
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int8_t
|
static int8_t
|
||||||
setup_compass(uint8_t argc, const Menu::arg *argv)
|
setup_compass(uint8_t argc, const Menu::arg *argv)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user