Skip to content

Commit 1110f8d

Browse files
Tschet1rugeGerritsen
authored andcommitted
samples: bluetooth: add error message on overstay
In case someone modifies the nrf_dm sample, he might increase the amount of time needed in the timeslot. If that is the case, the customer would just see an non-understandable MPSL assertion error. Improved this by printing an error message. There will still be an MPSL assertion, but hopefully with this people will know how to resolve it. Signed-off-by: Jan Müller <[email protected]>
1 parent 1d8a74c commit 1110f8d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

subsys/dm/dm.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,11 @@ static mpsl_timeslot_signal_return_param_t *mpsl_timeslot_callback(
207207
dm_api_call = TIMESLOT_RESCHEDULE;
208208
k_msgq_put(&dm_api_msgq, &dm_api_call, K_NO_WAIT);
209209
break;
210+
case MPSL_TIMESLOT_SIGNAL_OVERSTAYED:
211+
LOG_ERR("overstayed the timeslot: consider increasing DM_TIMESLOT_OVERHEAD_US");
212+
break;
210213
default:
214+
LOG_ERR("Unexpected timeslot signal (%u)", signal_type);
211215
break;
212216
}
213217

0 commit comments

Comments
 (0)