Skip to content

Commit

Permalink
BMS app: Call SOC update function regularly
Browse files Browse the repository at this point in the history
Fixes #40
  • Loading branch information
martinjaeger committed Jan 20, 2024
1 parent f0ff664 commit 7734569
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ int main(void)
LOG_ERR("Failed to read data from BMS IC: %d", err);
}

bms_soc_update(&bms);

bms_state_machine(&bms);

if (button_pressed_for_3s()) {
Expand Down

0 comments on commit 7734569

Please sign in to comment.