BLE - Use LowPower Ticker and Timer for address rotation and scan timeout.

pull/10326/head
Vincent Coubard 2019-03-07 16:49:58 +00:00 committed by Martin Kojtal
parent 165732938f
commit ab06c1f9ea
1 changed files with 5 additions and 4 deletions

View File

@ -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<size_t bit_size>
struct BitArray {