mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-06 03:50:13 +02:00
pre-commit fixes
This commit is contained in:
parent
882d753b71
commit
fdb2029d3a
1 changed files with 17 additions and 10 deletions
|
@ -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";
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue