12V/24V battery detection message updated (closes #43)

This commit is contained in:
Martin Jaeger
2019-08-08 11:36:13 +02:00
parent 4b545fa882
commit 0a2a38691b
+2 -2
View File
@@ -232,10 +232,10 @@ void charger_detect_num_batteries(Charger *charger, BatConf *bat, DcBus *bus)
if (bus->voltage > bat->voltage_absolute_min * 2 &&
bus->voltage < bat->voltage_absolute_max * 2) {
charger->num_batteries = 2;
printf("Detected 24V battery\n");
printf("Detected two batteries (total %.2f V max)\n", bat->voltage_topping * 2);
}
else {
printf("Detected 12V battery\n");
printf("Detected single battery (%.2f V max)\n", bat->voltage_topping);
}
}