pre-commit fixes

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

View file

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