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:
@ -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