mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-04 02:09:30 +02:00
Merge branch 'main' into feature/event-log
This commit is contained in:
commit
4dafe58770
16 changed files with 628 additions and 423 deletions
|
@ -141,6 +141,21 @@ static void update_bms_status(void) {
|
|||
}
|
||||
}
|
||||
|
||||
const char* get_led_color_display_text(u_int8_t led_color) {
|
||||
switch (led_color) {
|
||||
case RED:
|
||||
return "Error";
|
||||
case YELLOW:
|
||||
return "Warning";
|
||||
case GREEN:
|
||||
return "Info";
|
||||
case BLUE:
|
||||
return "Debug";
|
||||
default:
|
||||
return "UNKNOWN";
|
||||
}
|
||||
}
|
||||
|
||||
static void update_event_numbers(void) {
|
||||
events.nof_red_events = 0;
|
||||
events.nof_blue_events = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue