forked from h2zero/esp-nimble-cpp
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:
1 parent
5629f4d3e9
commit
6487225563
1 file changed
+3
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user