Skip to content

Commit

Permalink
Spelling fixed in comments of UnoBlink example.
Browse files Browse the repository at this point in the history
  • Loading branch information
nhjschulz committed Sep 25, 2024
1 parent da072b6 commit 0e35529
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions examples/UnoBlink/src/blinkdata.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
*
*/
typedef struct BlinkCtx {
int ledPin; /**< Arduino Pin number */
uint64_t turnOnTimeMillis; /**< Tick time when we turned the Led on*/
int ledPin; /**< Arduino Led pin number */
uint64_t turnOnTimeMillis; /**< Tick time when we turned the Led on */
} BlinkCtx, * BlinkCtxPtr ;

/**
Expand All @@ -51,4 +51,4 @@ enum BlinkEvents {
BLINK_EVENT_ON = 42 /**< Led turn on event ID*/
};

#endif /* SRC_C_FSM_C_FSM_H_ */
#endif /* SRC_C_BLINKDATA_C_BLINKDATA_H_ */
4 changes: 2 additions & 2 deletions examples/UnoBlink/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ void setup()
}

/**
* @brief Arduion loop function
* @brief Arduino loop function
*
*/
void loop()
{
cfsm_process(&blinkFsm); /* do work in current CFSM state */
cfsm_process(&blinkFsm); /* Do work in current CFSM state */

/* Turn LED on every 2 seconds by a CFSM event. */
if ((millis() - blinkData.turnOnTimeMillis) >= 2000ull)
Expand Down
4 changes: 2 additions & 2 deletions examples/UnoBlink/src/states/OffState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ void OffState_enter(cfsm_Ctx * fsm)

Serial.println(F("OffState: enter()"));

digitalWrite(ctx->ledPin, LOW); /* turn LED off */
digitalWrite(ctx->ledPin, LOW); /* Turn LED off. */

/* register OFF state hanlders with CFSM */
/* Register OFF state handlers with CFSM. */
fsm->onEvent = OffState_onEvent;
fsm->onLeave = OffState_Leave;
}

0 comments on commit 0e35529

Please sign in to comment.