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
|
// 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";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue