From 0e3552989f357ca17682d4bb0b18540d9cf8718f Mon Sep 17 00:00:00 2001 From: nhjschulz Date: Wed, 25 Sep 2024 16:50:26 +0200 Subject: [PATCH] Spelling fixed in comments of UnoBlink example. --- examples/UnoBlink/src/blinkdata.h | 6 +++--- examples/UnoBlink/src/main.cpp | 4 ++-- examples/UnoBlink/src/states/OffState.cpp | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/UnoBlink/src/blinkdata.h b/examples/UnoBlink/src/blinkdata.h index fb3b16f..03c4187 100644 --- a/examples/UnoBlink/src/blinkdata.h +++ b/examples/UnoBlink/src/blinkdata.h @@ -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 ; /** @@ -51,4 +51,4 @@ enum BlinkEvents { BLINK_EVENT_ON = 42 /**< Led turn on event ID*/ }; -#endif /* SRC_C_FSM_C_FSM_H_ */ \ No newline at end of file +#endif /* SRC_C_BLINKDATA_C_BLINKDATA_H_ */ \ No newline at end of file diff --git a/examples/UnoBlink/src/main.cpp b/examples/UnoBlink/src/main.cpp index c34285f..118ae6d 100644 --- a/examples/UnoBlink/src/main.cpp +++ b/examples/UnoBlink/src/main.cpp @@ -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) diff --git a/examples/UnoBlink/src/states/OffState.cpp b/examples/UnoBlink/src/states/OffState.cpp index 044df48..54c76aa 100644 --- a/examples/UnoBlink/src/states/OffState.cpp +++ b/examples/UnoBlink/src/states/OffState.cpp @@ -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; }