updated the state machine

This commit is contained in:
2024-05-23 19:08:46 +03:00
parent 61c8d173a1
commit 1642627dd2
2 changed files with 13 additions and 16 deletions

View File

@ -54,12 +54,12 @@ void sm_init();
void sm_update();
State sm_update_inactive();
State sm_update_active();
State sm_update_precharge();
State sm_update_ready();
State sm_update_active();
State sm_update_discharge();
State sm_update_error();
State sm_update_charging_check();
State sm_update_charging();
State sm_update_error();
typedef enum { RELAY_POS, RELAY_PRECHARGE } Relay;
void sm_set_relay_positions(State state);