diff --git a/components/vport/vport_ble.h b/components/vport/vport_ble.h index 9bba47d..7e3afcc 100644 --- a/components/vport/vport_ble.h +++ b/components/vport/vport_ble.h @@ -81,7 +81,9 @@ template 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;