-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add component state machine getter #532
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
I forgot to mention that you can run ./check-cpp
in fpp-to-cpp/test
or fpp-to-cpp/test/component/base
to check that the generated code compiles. When I did that I saw that the state type in the generated state machine class is not State
but ActiveStateMachines_S1_States
. Can you fix it and run ./check-cpp
to make sure it compiles? Thanks!
The externally generated code is here: |
Looks like this requires the
When I use |
I think the problem is that
Can you try applying that? You should set |
Ah yes good call, I had residual packages (including I just pushed a fix for the above. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
I updated the path to fpp-to-cpp in the generate script. That way the script will pick up fpp-to-cpp from the repo instead of the environment.
It's not needed, since the guard is true if and only if the computed list is nonempty.
Adds a
protected
*_getState
function for each state machine.Closes #530