|
|
@ -322,9 +322,13 @@ static void report_batt_monitor() |
|
|
|
{ |
|
|
|
{ |
|
|
|
cliSerial->printf_P(PSTR("\nBatt Mon:\n")); |
|
|
|
cliSerial->printf_P(PSTR("\nBatt Mon:\n")); |
|
|
|
print_divider(); |
|
|
|
print_divider(); |
|
|
|
if (battery.monitoring() == AP_BATT_MONITOR_DISABLED) print_enabled(false); |
|
|
|
if (battery.num_instances() == 0) { |
|
|
|
if (battery.monitoring() == AP_BATT_MONITOR_VOLTAGE_ONLY) cliSerial->printf_P(PSTR("volts")); |
|
|
|
print_enabled(false); |
|
|
|
if (battery.monitoring() == AP_BATT_MONITOR_VOLTAGE_AND_CURRENT) cliSerial->printf_P(PSTR("volts and cur")); |
|
|
|
} else if (!battery.has_current()) { |
|
|
|
|
|
|
|
cliSerial->printf_P(PSTR("volts")); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
cliSerial->printf_P(PSTR("volts and cur")); |
|
|
|
|
|
|
|
} |
|
|
|
print_blanks(2); |
|
|
|
print_blanks(2); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|