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();
|
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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue