fix(behaviors): Correct macro release state for parametrized macros (#2942)

test(behaviors): Add parametrized macro test that fails

fix(behaviors): Correct macro release state for parametrized
This commit is contained in:
Cem Aksoylar 2025-07-29 15:39:26 -07:00 committed by GitHub
parent d09087f4dc
commit 1bac680c4f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 60 additions and 1 deletions

View file

@ -129,7 +129,9 @@ static int behavior_macro_init(const struct device *dev) {
LOG_DBG("Release will resume at %d", state->release_state.start_index);
break;
} else {
// Ignore regular invokable bindings
// Mostly ignore regular invokable bindings, except they will consume macro parameters
state->release_state.param1_source = PARAM_SOURCE_BINDING;
state->release_state.param2_source = PARAM_SOURCE_BINDING;
}
}