Skip to content

Commit c7efc8b

Browse files
committed
sdh: let nrf_sdh_is_suspended() only check for sdh state
Only check if the SoftDevice handler is suspended, not if the SoftDevice is enabled. Signed-off-by: Emanuele Di Santo <[email protected]>
1 parent 30b6c91 commit c7efc8b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

subsys/softdevice_handler/nrf_sdh.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -194,11 +194,7 @@ void nrf_sdh_resume(void)
194194

195195
bool nrf_sdh_is_suspended(void)
196196
{
197-
uint8_t sd_is_enabled;
198-
199-
(void) sd_softdevice_is_enabled(&sd_is_enabled);
200-
201-
return (!sd_is_enabled || sdh_suspended);
197+
return sdh_suspended;
202198
}
203199

204200
void nrf_sdh_evts_poll(void)

0 commit comments

Comments
 (0)