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
  • Loading branch information
ArekBalysNordic committed Mar 12, 2024
1 parent 0b0a8f8 commit 7ddfa50
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 7ddfa50

Please sign in to comment.