Skip to content

Commit

Permalink
[nrfconnect] platform: zephyr: Fix random include
Browse files Browse the repository at this point in the history
Fixes the name of the random include as required by a zephyr
update

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
  • Loading branch information
nordicjm authored and ArekBalysNordic committed Mar 11, 2024
1 parent 2477a88 commit 2c31cd8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/platform/Zephyr/BLEManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,14 @@

#include <zephyr/bluetooth/addr.h>
#include <zephyr/bluetooth/gatt.h>

#include <zephyr/bluetooth/hci.h>
#if CHIP_DEVICE_LAYER_TARGET_NRFCONNECT
/* The Nrfconnect platform uses the newer Zephyr version, and rand32.h is deprecated there */
#include <zephyr/random/random.h>
#else
#include <zephyr/random/rand32.h>
#endif
#include <zephyr/sys/byteorder.h>
#include <zephyr/sys/util.h>

Expand Down

0 comments on commit 2c31cd8

Please sign in to comment.