Skip to content

Commit 1a90dcf

Browse files
jhirsijukkar
authored andcommitted
samples: dect_phy: dect_shell: scheduler: making late items visible
Sending DECT_SCHEDULER_DELAYED_ERROR evt for scheduler missed items due to being late to dect_phy_ctrl. resulting error prints in mdm op complete handlers. Signed-off-by: Jani Hirsimäki <[email protected]>
1 parent 7b979c4 commit 1a90dcf

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

samples/dect/dect_phy/dect_shell/src/dect/common/dect_phy_api_scheduler.c

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ enum dect_phy_api_scheduler_state {
3939
};
4040

4141
/* Scheduler data */
42-
static struct dect_phy_api_data {
42+
static struct dect_phy_api_scheduler_data {
4343
enum dect_phy_api_scheduler_state state;
4444
} scheduler_data;
4545

@@ -1171,22 +1171,21 @@ static void dect_phy_api_scheduler_core_tick_th_schedule_next_frame(void)
11711171
NRF_MODEM_DECT_PHY_TEMP_NOT_MEASURED;
11721172
sched_op_completed_params.status = ret;
11731173

1174+
/* Complete item */
11741175
if (iterator->sched_config.cb_op_to_mdm) {
11751176
iterator->sched_config.cb_op_to_mdm(
11761177
&sched_op_completed_params,
11771178
iterator->sched_config.frame_time);
11781179
}
11791180

11801181
if (iterator->sched_config.cb_op_completed) {
1181-
/* Complete item */
1182-
11831182
/* Trigger callback also */
11841183
dect_phy_api_scheduler_done_list_mdm_op_complete(
11851184
&sched_op_completed_params, iterator);
1186-
1187-
dect_phy_api_scheduler_mdm_op_req_failed_evt_send(
1188-
&sched_op_completed_params);
11891185
}
1186+
dect_phy_api_scheduler_mdm_op_req_failed_evt_send(
1187+
&sched_op_completed_params);
1188+
11901189
if (iterator->sched_config.interval_count_left > 0) {
11911190
iterator->sched_config.interval_count_left--;
11921191
if (iterator->sched_config.interval_count_left == 0) {

0 commit comments

Comments
 (0)