Skip to content

Commit

Permalink
vport_ble: do not disconnect on ble ready event with persistent conne…
Browse files Browse the repository at this point in the history
…ction
  • Loading branch information
dentra committed Oct 28, 2022
1 parent 209b516 commit 27c9b1c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/vport/vport_ble.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ template<typename frame_type> class VPortBLEComponentBase : public VPortComponen

void on_ble_ready() override {
this->fire_ready();
this->schedule_disconnect();
if (!this->is_persistent_connection()) {
this->schedule_disconnect();
}
}

virtual bool should_disconnect(frame_type type) = 0;
Expand Down

0 comments on commit 27c9b1c

Please sign in to comment.