mirror of
https://github.com/h2zero/esp-nimble-cpp.git
synced 2024-12-22 19:10:46 +01:00
Initialize duration member variable in NimBLEAdvertising constructor.
m_duration member variable was not set previously which could trigger advertising to start if the host was reset prior to the application calling start.
This commit is contained in:
parent
b064cc65d4
commit
5629f4d3e9
1 changed files with 2 additions and 0 deletions
|
@ -63,6 +63,8 @@ NimBLEAdvertising::NimBLEAdvertising() : m_slaveItvl() {
|
|||
m_customScanResponseData = false;
|
||||
m_scanResp = true;
|
||||
m_advDataSet = false;
|
||||
// Set this to non-zero to prevent auto start if host reset before started by app.
|
||||
m_duration = BLE_HS_FOREVER;
|
||||
|
||||
} // NimBLEAdvertising
|
||||
|
||||
|
|
Loading…
Reference in a new issue