Skip to content

Commit

Permalink
sample: smf_api align with api change
Browse files Browse the repository at this point in the history
new SMF api has more arguments.

Signed-off-by: Robert Gałat <[email protected]>
  • Loading branch information
RobertGalatNordic committed May 23, 2024
1 parent 94f3d07 commit 2f14118
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions samples/sid_end_device/src/sensor_monitoring/app_tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@ static void state_notify_data(void *o);
static void button_timer_cb(struct k_timer *timer_id);

static const struct smf_state app_states[] = {
[STATE_APP_INIT] = SMF_CREATE_STATE(NULL, state_init, NULL),
[STATE_APP_NOTIFY_CAPABILITY] = SMF_CREATE_STATE(NULL, state_notify_capability, NULL),
[STATE_APP_NOTIFY_DATA] = SMF_CREATE_STATE(NULL, state_notify_data, NULL),
[STATE_APP_INIT] = SMF_CREATE_STATE(NULL, state_init, NULL, NULL, NULL),
[STATE_APP_NOTIFY_CAPABILITY] =
SMF_CREATE_STATE(NULL, state_notify_capability, NULL, NULL, NULL),
[STATE_APP_NOTIFY_DATA] = SMF_CREATE_STATE(NULL, state_notify_data, NULL, NULL, NULL),
};

static uint8_t __aligned(4)
Expand Down
4 changes: 2 additions & 2 deletions samples/sid_end_device/src/sidewalk.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ static void state_dfu_run(void *o);

static const struct smf_state sid_states[] = {
[STATE_SIDEWALK] =
SMF_CREATE_STATE(state_sidewalk_entry, state_sidewalk_run, state_sidewalk_exit),
[STATE_DFU] = SMF_CREATE_STATE(state_dfu_entry, state_dfu_run, NULL),
SMF_CREATE_STATE(state_sidewalk_entry, state_sidewalk_run, state_sidewalk_exit, NULL, NULL),
[STATE_DFU] = SMF_CREATE_STATE(state_dfu_entry, state_dfu_run, NULL, NULL, NULL),
};

static uint8_t __aligned(4)
Expand Down

0 comments on commit 2f14118

Please sign in to comment.