refactor - change constants
This commit is contained in:
@@ -55,6 +55,7 @@ void Battery::calculateBatteryPercent() {
|
||||
if (this->batteryVoltage <= this->capacityVoltages[i])
|
||||
break;
|
||||
}
|
||||
|
||||
if (i == 0) {
|
||||
if (this->batteryVoltage > 6)
|
||||
std::cout << "Critical low battery!" << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user