Skip to content

Commit b183ba1

Browse files
committed
BLE - Use LowPower Ticker and Timer for address rotation and scan timeout.
1 parent a105db3 commit b183ba1

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

features/FEATURE_BLE/ble/generic/GenericGap.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
#include "ble/pal/ConnectionEventMonitor.h"
3131
#include "ble/pal/Deprecated.h"
3232

33-
#include "drivers/Timeout.h"
33+
#include "drivers/LowPowerTimeout.h"
34+
#include "drivers/LowPowerTicker.h"
3435
#include "platform/mbed_error.h"
3536

3637
namespace ble {
@@ -802,9 +803,9 @@ class GenericGap :
802803
bool _random_address_rotating;
803804

804805
bool _scan_enabled;
805-
mbed::Timeout _advertising_timeout;
806-
mbed::Timeout _scan_timeout;
807-
mbed::Ticker _address_rotation_ticker;
806+
mbed::LowPowerTimeout _advertising_timeout;
807+
mbed::LowPowerTimeout _scan_timeout;
808+
mbed::LowPowerTicker _address_rotation_ticker;
808809

809810
template<size_t bit_size>
810811
struct BitArray {

0 commit comments

Comments
 (0)