Skip to content
Commit 94084e5a authored by Glenn Andrews's avatar Glenn Andrews Committed by Henrik Brix Andersen
Browse files

Lib: SMF: Add return code to signal event propagation

See Discussion https://github.com/zephyrproject-rtos/zephyr/discussions/83659


for information about the purpose of this change.

Modifies run actions of hierarchical state machines
to return a value indicating if the event was handled
by the run action or should be propagated up to the
parent run action. Flat state machines are not affected,
and their run action returns void.

smf_set_handled() has been removed and replaced by
this return value. smf_set_state() will not propagate
events regardless of the return value as the transition
is considered to have occurred.

Documentation, tests, samples, has been updated.
USB-C and hawkBit use SMF and have been updated to use
the new return codes.

Signed-off-by: default avatarGlenn Andrews <glenn.andrews.42@gmail.com>
parent 1bee2920
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment