Update BLE status when BLE is connected.

This commit is contained in:
JF 2020-06-19 22:20:12 +02:00
parent b8f9d70667
commit 3dfba0b90d

View file

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