|
|
|
@ -216,11 +216,8 @@ void measure_battery() { |
|
|
|
|
|
|
|
|
|
// if (bt_state == BT_STATE_CONNECTED) {
|
|
|
|
|
// SerialBT.printf("Bus voltage %.3fv. Unfiltered %.3fv.", battery_voltage, bat_v_samples[BAT_SAMPLES-1]);
|
|
|
|
|
// if (bat_voltage_dropping) {
|
|
|
|
|
// SerialBT.printf(" Voltage is dropping. Percentage %.1f%%.", battery_percent);
|
|
|
|
|
// } else {
|
|
|
|
|
// SerialBT.printf(" Voltage is not dropping. Percentage %.1f%%.", battery_percent);
|
|
|
|
|
// }
|
|
|
|
|
// if (bat_voltage_dropping) { SerialBT.printf(" Voltage is dropping. Percentage %.1f%%.", battery_percent); }
|
|
|
|
|
// else { SerialBT.printf(" Voltage is not dropping. Percentage %.1f%%.", battery_percent); }
|
|
|
|
|
// if (battery_state == BATTERY_STATE_DISCHARGING) { SerialBT.printf(" Battery discharging. delay_v %.3fv", bat_delay_v); }
|
|
|
|
|
// if (battery_state == BATTERY_STATE_CHARGING) { SerialBT.printf(" Battery charging. delay_v %.3fv", bat_delay_v); }
|
|
|
|
|
// if (battery_state == BATTERY_STATE_CHARGED) { SerialBT.print(" Battery is charged."); }
|
|
|
|
|