Skip to content

Fix incorrect preprocessor checks#3

Merged
vpetrigo merged 3 commits intomainfrom
fix/incorrect_preprocessor_checks
Apr 11, 2025
Merged

Fix incorrect preprocessor checks#3
vpetrigo merged 3 commits intomainfrom
fix/incorrect_preprocessor_checks

Conversation

@vpetrigo
Copy link
Copy Markdown
Owner

No description provided.

Bumped the project version from 0.2.1 to 0.2.2 in CMakeLists.txt. Explicitly set values for `CONFIG_SMF_ANCESTOR_SUPPORT` and `CONFIG_SMF_INITIAL_TRANSITION` to `1` for clarity in compile definitions.
Replaced `#ifdef` with `#if CONFIG_* == 1` for better clarity and explicitness. This ensures a stricter evaluation of configuration settings and improves maintainability.
Replaced hardcoded state machine object references with the provided context parameter to ensure correct state transition behavior. This improves code flexibility and correctness for different context usage scenarios.
@vpetrigo vpetrigo merged commit 9dbe5e9 into main Apr 11, 2025
48 checks passed
@vpetrigo vpetrigo deleted the fix/incorrect_preprocessor_checks branch April 11, 2025 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant