Skip to content

Commit

Permalink
fix: GAP connection procedure (#445)
Browse files Browse the repository at this point in the history
timer is used as a flag
  • Loading branch information
gabrielsantosphilips authored Nov 4, 2024
1 parent 62be185 commit e11c17e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions hal_st/middlewares/ble_middleware/GapCentralSt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,10 +250,11 @@ namespace hal

void GapCentralSt::HandleGapDirectConnectionProcedureCompleteEvent()
{
infra::Subject<services::GapCentralObserver>::NotifyObservers([](services::GapCentralObserver& observer)
{
observer.StateChanged(services::GapState::standby);
});
if (!initiatingStateTimer.Armed())
infra::Subject<services::GapCentralObserver>::NotifyObservers([](services::GapCentralObserver& observer)
{
observer.StateChanged(services::GapState::standby);
});
}

void GapCentralSt::MtuExchange() const
Expand Down

0 comments on commit e11c17e

Please sign in to comment.