mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-04 10:19:29 +02:00
Fix code formatting.
This commit is contained in:
parent
d5228efe9f
commit
40fbdc5f73
3 changed files with 14 additions and 10 deletions
|
@ -135,10 +135,10 @@ void Logging::printf(const char* fmt, ...) {
|
|||
#endif // DEBUG_LOG
|
||||
}
|
||||
|
||||
void Logging::log_bms_status(real_bms_status_enum bms_status, int battery_id){
|
||||
void Logging::log_bms_status(real_bms_status_enum bms_status, int battery_id) {
|
||||
static real_bms_status_enum previous_state = BMS_FAULT;
|
||||
const char *id = "";
|
||||
if (battery_id == 2){
|
||||
const char* id = "";
|
||||
if (battery_id == 2) {
|
||||
id = "2";
|
||||
}
|
||||
if (previous_state != bms_status) {
|
||||
|
@ -161,4 +161,4 @@ void Logging::log_bms_status(real_bms_status_enum bms_status, int battery_id){
|
|||
}
|
||||
previous_state = bms_status;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue