Skip to content

Commit

Permalink
fix(behaviors): Add multiple soft-off instances properly.
Browse files Browse the repository at this point in the history
* Properly pass the node id for the unique
  soft-off behavior instance when defining it.
  • Loading branch information
petejohanson committed Apr 18, 2024
1 parent e22bc76 commit 16e92cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/behaviors/behavior_soft_off.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ static const struct behavior_driver_api behavior_soft_off_driver_api = {
DT_INST_PROP_OR(n, split_peripheral_off_on_press, false), \
}; \
static struct behavior_soft_off_data bso_data_##n = {}; \
BEHAVIOR_DT_INST_DEFINE(0, behavior_soft_off_init, NULL, &bso_data_##n, &bso_config_##n, \
BEHAVIOR_DT_INST_DEFINE(n, behavior_soft_off_init, NULL, &bso_data_##n, &bso_config_##n, \
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, \
&behavior_soft_off_driver_api);

Expand Down

0 comments on commit 16e92cf

Please sign in to comment.