pre-commit fixes

This commit is contained in:
amarofarinha 2024-09-10 21:34:52 +01:00
parent 882d753b71
commit fdb2029d3a

View file

@ -2,13 +2,20 @@
// Function to get string representation of bms_status_enum
std::string getBMSStatus(bms_status_enum status) {
switch (status) {
case STANDBY: return "STANDBY";
case INACTIVE: return "INACTIVE";
case DARKSTART: return "DARKSTART";
case ACTIVE: return "ACTIVE";
case FAULT: return "FAULT";
case UPDATING: return "UPDATING";
default: return "UNKNOWN";
}
switch (status) {
case STANDBY:
return "STANDBY";
case INACTIVE:
return "INACTIVE";
case DARKSTART:
return "DARKSTART";
case ACTIVE:
return "ACTIVE";
case FAULT:
return "FAULT";
case UPDATING:
return "UPDATING";
default:
return "UNKNOWN";
}
}