LennartHennigs / SimpleFSM

Arduino/ESP library to simplify setting up and running a state machine.
MIT License
69 stars 16 forks source link

Constructor of "State" does not pass on "is_final" to function "setup" #12

Closed bloodhoundmichael closed 1 year ago

bloodhoundmichael commented 1 year ago

The constructor is the following:

State::State(String name, CallbackFunction on_enter, CallbackFunction on_state, CallbackFunction on_exit, bool is_final /* = false */) {
  setup(name, on_enter, on_state, on_exit);
}

You can see that is_final is not passed on to setup.

LennartHennigs commented 1 year ago

Thanks!