summaryrefslogtreecommitdiffstats
path: root/examples/bluetooth/heartrate-game
diff options
context:
space:
mode:
Diffstat (limited to 'examples/bluetooth/heartrate-game')
-rw-r--r--examples/bluetooth/heartrate-game/devicehandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/bluetooth/heartrate-game/devicehandler.cpp b/examples/bluetooth/heartrate-game/devicehandler.cpp
index 3d263a4c..3bbadd7e 100644
--- a/examples/bluetooth/heartrate-game/devicehandler.cpp
+++ b/examples/bluetooth/heartrate-game/devicehandler.cpp
@@ -115,7 +115,7 @@ void DeviceHandler::setDevice(DeviceInfo *device)
// Make connections
//! [Connect-Signals-1]
- m_control = new QLowEnergyController(m_currentDevice->getDevice(), this);
+ m_control = QLowEnergyController::createCentral(m_currentDevice->getDevice(), this);
//! [Connect-Signals-1]
m_control->setRemoteAddressType(m_addressType);
//! [Connect-Signals-2]