jrullan / StateMachine

State machine library for Arduino
MIT License
138 stars 26 forks source link

Adding the ability to add this library to multi-file projects #11

Closed Voha888 closed 3 years ago

Voha888 commented 3 years ago

When creating a project in VScode with the Platformio plugin, it becomes necessary to re-include the library header file in several files, for example, to use the extern keyword. The original version of the library does not allow this. I separated the class methods into .cpp files, now the library header files can be included in several compilation units.

Please, see my pull request #10

jrullan commented 3 years ago

Thank you for your contribution! Merged.