From 00a6d4cf7846fbe2121089df0f325f9bb70aa6bf Mon Sep 17 00:00:00 2001 From: Lukasz Maciejonczyk Date: Thu, 31 Mar 2022 15:10:39 +0200 Subject: [PATCH] drivers: ieee802154_nrf5: limit IEEE802154_NRF5_DELAY_TRX_ACC Currently IEEE802154_NRF5_DELAY_TRX_ACC can exceed the max possible value. Add upper bound to limit this. Signed-off-by: Lukasz Maciejonczyk --- drivers/ieee802154/Kconfig.nrf5 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/ieee802154/Kconfig.nrf5 b/drivers/ieee802154/Kconfig.nrf5 index 46a730611cd..21a397a928d 100644 --- a/drivers/ieee802154/Kconfig.nrf5 +++ b/drivers/ieee802154/Kconfig.nrf5 @@ -77,7 +77,8 @@ config IEEE802154_NRF5_FCS_IN_LENGTH config IEEE802154_NRF5_DELAY_TRX_ACC int "Clock accuracy for delayed operations" - default CLOCK_CONTROL_NRF_ACCURACY + default CLOCK_CONTROL_NRF_ACCURACY if CLOCK_CONTROL_NRF_ACCURACY < 255 + default 255 help Accuracy of the clock used for scheduling radio delayed operations (delayed transmission or delayed reception), in ppm.