Update BLE status when BLE is connected.
This commit is contained in:
parent
b8f9d70667
commit
3dfba0b90d
|
@ -180,8 +180,8 @@ int NimbleController::OnGAPEvent(ble_gap_event *event) {
|
|||
StartAdvertising();
|
||||
bleController.Disconnect();
|
||||
} else {
|
||||
//bleController.Connect();
|
||||
//systemTask.PushMessage(Pinetime::System::SystemTask::Messages::BleConnected);
|
||||
bleController.Connect();
|
||||
systemTask.PushMessage(Pinetime::System::SystemTask::Messages::BleConnected);
|
||||
connectionHandle = event->connect.conn_handle;
|
||||
// Service discovery is deffered via systemtask
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user