Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add `on_state()` handler to states * New `run_machine()` method to invoke machine execution (includes a `check_timed_transitions()` call) * New `timed_switchoff.ino` example sketch to ilustrate new `on_state()` and `run_machine()` funcionality * Corrections: - `make_transition()` correctly initialices timed transitions start milliseconds (`make_transition()` is now a fsm method) - Initial state `on_enter()` handler is now correctly executed on fsm first run - Removed `Serial.println(now);` trace in _Fsm.cpp_ - Correct initialization of `m_num_timed_transitions`
- Loading branch information
Showing
8 changed files
with
330 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.