From 864ff10ab9fb5a31fcdec7fad920710fa4b3c59f Mon Sep 17 00:00:00 2001 From: Nathan Hui Date: Thu, 31 Oct 2024 19:50:45 -0700 Subject: [PATCH] style: Formats state object table --- src/smartfin-fw3.ino | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/src/smartfin-fw3.ino b/src/smartfin-fw3.ino index 08ef54a..056b0eb 100644 --- a/src/smartfin-fw3.ino +++ b/src/smartfin-fw3.ino @@ -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;