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(); StartAdvertising();
bleController.Disconnect(); bleController.Disconnect();
} else { } else {
//bleController.Connect(); bleController.Connect();
//systemTask.PushMessage(Pinetime::System::SystemTask::Messages::BleConnected); systemTask.PushMessage(Pinetime::System::SystemTask::Messages::BleConnected);
connectionHandle = event->connect.conn_handle; connectionHandle = event->connect.conn_handle;
// Service discovery is deffered via systemtask // Service discovery is deffered via systemtask
} }