mirror of
https://github.com/h2zero/esp-nimble-cpp.git
synced 2024-11-21 20:50:55 +01:00
Call advertising stopped callback when the host re-synced.
If the stack was reset and duration was not indefinite the callback for advertising stopped should be called when re-synced.
This commit is contained in:
parent
5629f4d3e9
commit
6487225563
1 changed files with 3 additions and 0 deletions
|
@ -541,6 +541,9 @@ void NimBLEAdvertising::onHostSync() {
|
|||
// If we were advertising forever, restart it now
|
||||
if(m_duration == 0) {
|
||||
start(m_duration, m_advCompCB);
|
||||
} else {
|
||||
// Otherwise we should tell the app that advertising stopped.
|
||||
advCompleteCB();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue