mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-05 10:49:42 +02:00
ran code formatting pre-commit
This commit is contained in:
parent
6891be3e24
commit
cbb6e34baf
1 changed files with 21 additions and 19 deletions
|
@ -22,27 +22,29 @@ String advanced_battery_processor(const String& var) {
|
||||||
"UNKNOWN(10)", "UNKNOWN(11)", "UNKNOWN(12)"};
|
"UNKNOWN(10)", "UNKNOWN(11)", "UNKNOWN(12)"};
|
||||||
content += "<h4>Contactor Status: " + String(contactorText[datalayer_extended.tesla.status_contactor]) + "</h4>";
|
content += "<h4>Contactor Status: " + String(contactorText[datalayer_extended.tesla.status_contactor]) + "</h4>";
|
||||||
static const char* hvilStatusState[] = {"NOT OK",
|
static const char* hvilStatusState[] = {"NOT OK",
|
||||||
"STATUS_OK",
|
"STATUS_OK",
|
||||||
"CURRENT_SOURCE_FAULT",
|
"CURRENT_SOURCE_FAULT",
|
||||||
"INTERNAL_OPEN_FAULT",
|
"INTERNAL_OPEN_FAULT",
|
||||||
"VEHICLE_OPEN_FAULT",
|
"VEHICLE_OPEN_FAULT",
|
||||||
"PENTHOUSE_LID_OPEN_FAULT",
|
"PENTHOUSE_LID_OPEN_FAULT",
|
||||||
"UNKNOWN_LOCATION_OPEN_FAULT",
|
"UNKNOWN_LOCATION_OPEN_FAULT",
|
||||||
"VEHICLE_NODE_FAULT",
|
"VEHICLE_NODE_FAULT",
|
||||||
"NO_12V_SUPPLY",
|
"NO_12V_SUPPLY",
|
||||||
"VEHICLE_OR_PENTHOUSE_LID_OPENFAULT",
|
"VEHICLE_OR_PENTHOUSE_LID_OPENFAULT",
|
||||||
"UNKNOWN(10)",
|
"UNKNOWN(10)",
|
||||||
"UNKNOWN(11)",
|
"UNKNOWN(11)",
|
||||||
"UNKNOWN(12)",
|
"UNKNOWN(12)",
|
||||||
"UNKNOWN(13)",
|
"UNKNOWN(13)",
|
||||||
"UNKNOWN(14)",
|
"UNKNOWN(14)",
|
||||||
"UNKNOWN(15)"};
|
"UNKNOWN(15)"};
|
||||||
content += "<h4>HVIL: " + String(hvilStatusState[datalayer_extended.tesla.hvil_status]) + "</h4>";
|
content += "<h4>HVIL: " + String(hvilStatusState[datalayer_extended.tesla.hvil_status]) + "</h4>";
|
||||||
static const char* contactorState[] = {"SNA", "OPEN", "PRECHARGE", "BLOCKED",
|
static const char* contactorState[] = {"SNA", "OPEN", "PRECHARGE", "BLOCKED",
|
||||||
"PULLED_IN", "OPENING", "ECONOMIZED", "WELDED",
|
"PULLED_IN", "OPENING", "ECONOMIZED", "WELDED",
|
||||||
"UNKNOWN(8)", "UNKNOWN(9)", "UNKNOWN(10)", "UNKNOWN(11)"};
|
"UNKNOWN(8)", "UNKNOWN(9)", "UNKNOWN(10)", "UNKNOWN(11)"};
|
||||||
content += "<h4>Negative contactor: " + String(contactorState[datalayer_extended.tesla.packContNegativeState]) + "</h4>";
|
content +=
|
||||||
content += "<h4>Positive contactor: " + String(contactorState[datalayer_extended.tesla.packContPositiveState]) + "</h4>";
|
"<h4>Negative contactor: " + String(contactorState[datalayer_extended.tesla.packContNegativeState]) + "</h4>";
|
||||||
|
content +=
|
||||||
|
"<h4>Positive contactor: " + String(contactorState[datalayer_extended.tesla.packContPositiveState]) + "</h4>";
|
||||||
static const char* falseTrue[] = {"False", "True"};
|
static const char* falseTrue[] = {"False", "True"};
|
||||||
content += "<h4>Closing allowed?: " + String(falseTrue[datalayer_extended.tesla.packCtrsClosingAllowed]) + "</h4>";
|
content += "<h4>Closing allowed?: " + String(falseTrue[datalayer_extended.tesla.packCtrsClosingAllowed]) + "</h4>";
|
||||||
content += "<h4>Pyrotest: " + String(falseTrue[datalayer_extended.tesla.pyroTestInProgress]) + "</h4>";
|
content += "<h4>Pyrotest: " + String(falseTrue[datalayer_extended.tesla.pyroTestInProgress]) + "</h4>";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue