Skip to content

Commit

Permalink
style: Formats state object table
Browse files Browse the repository at this point in the history
  • Loading branch information
ntlhui committed Nov 1, 2024
1 parent b33cbe9 commit 864ff10
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions src/smartfin-fw3.ino
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,13 @@ static MfgTest mfgTask;
static RideTask rideTask;

// Holds the list of states and coresponding tasks
static StateMachine_t stateMachine[] =
{
{STATE_CLI, &cliTask},
{STATE_DEEP_SLEEP, &sleepTask},
{STATE_CHARGE, &chargeTask},
{STATE_UPLOAD, &uploadTask},
{STATE_MFG_TEST, &mfgTask},
{STATE_DEPLOYED, &rideTask},
{STATE_NULL, NULL}
};
static StateMachine_t stateMachine[] = {{STATE_CLI, &cliTask},
{STATE_DEEP_SLEEP, &sleepTask},
{STATE_CHARGE, &chargeTask},
{STATE_UPLOAD, &uploadTask},
{STATE_MFG_TEST, &mfgTask},
{STATE_DEPLOYED, &rideTask},
{STATE_NULL, NULL}};

static STATES_e currentState;

Expand Down

0 comments on commit 864ff10

Please sign in to comment.