From ab06c1f9eaef0bc159982216fb64d9c2ca824936 Mon Sep 17 00:00:00 2001 From: Vincent Coubard Date: Thu, 7 Mar 2019 16:49:58 +0000 Subject: [PATCH] BLE - Use LowPower Ticker and Timer for address rotation and scan timeout. --- features/FEATURE_BLE/ble/generic/GenericGap.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/features/FEATURE_BLE/ble/generic/GenericGap.h b/features/FEATURE_BLE/ble/generic/GenericGap.h index d4531f7dbc..4a8961f691 100644 --- a/features/FEATURE_BLE/ble/generic/GenericGap.h +++ b/features/FEATURE_BLE/ble/generic/GenericGap.h @@ -30,7 +30,8 @@ #include "ble/pal/ConnectionEventMonitor.h" #include "ble/pal/Deprecated.h" -#include "drivers/Timeout.h" +#include "drivers/LowPowerTimeout.h" +#include "drivers/LowPowerTicker.h" #include "platform/mbed_error.h" namespace ble { @@ -802,9 +803,9 @@ private: bool _random_address_rotating; bool _scan_enabled; - mbed::Timeout _advertising_timeout; - mbed::Timeout _scan_timeout; - mbed::Ticker _address_rotation_ticker; + mbed::LowPowerTimeout _advertising_timeout; + mbed::LowPowerTimeout _scan_timeout; + mbed::LowPowerTicker _address_rotation_ticker; template struct BitArray {