From 7ddfa502629c54af1a4c520773c00c6b904c056d Mon Sep 17 00:00:00 2001 From: Arkadiusz Balys Date: Tue, 12 Mar 2024 08:55:21 +0100 Subject: [PATCH] [nrfconnect] platform: zephyr: Fix random include Fixes the name of the random include as required by a zephyr update --- src/platform/Zephyr/BLEManagerImpl.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/platform/Zephyr/BLEManagerImpl.cpp b/src/platform/Zephyr/BLEManagerImpl.cpp index 07f30dc0632a6c..d97bee37b5d7ed 100644 --- a/src/platform/Zephyr/BLEManagerImpl.cpp +++ b/src/platform/Zephyr/BLEManagerImpl.cpp @@ -39,8 +39,14 @@ #include #include + #include +#if CHIP_DEVICE_LAYER_TARGET_NRFCONNECT +/* The Nrfconnect platform uses the newer Zephyr version, and rand32.h is deprecated there */ +#include +#else #include +#endif #include #include