From 932260b40a55db27987268df55d3bbf9a3582232 Mon Sep 17 00:00:00 2001 From: Jozef Mlich Date: Fri, 22 Nov 2024 14:56:07 +0100 Subject: [PATCH] pair function shoud invoke QBLEDevice::pair() --- daemon/src/devices/asteroidosdevice.cpp | 2 +- daemon/src/devices/banglejsdevice.cpp | 2 +- daemon/src/devices/pinetimejfdevice.cpp | 7 ++++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/daemon/src/devices/asteroidosdevice.cpp b/daemon/src/devices/asteroidosdevice.cpp index bd47f82f..a53d7d9b 100644 --- a/daemon/src/devices/asteroidosdevice.cpp +++ b/daemon/src/devices/asteroidosdevice.cpp @@ -78,7 +78,7 @@ void AsteroidOSDevice::pair() setConnectionState("pairing"); emit connectionStateChanged(); - QBLEDevice::connectToDevice(); + QBLEDevice::pair(); } diff --git a/daemon/src/devices/banglejsdevice.cpp b/daemon/src/devices/banglejsdevice.cpp index 5e0f40b7..bb0d8dae 100644 --- a/daemon/src/devices/banglejsdevice.cpp +++ b/daemon/src/devices/banglejsdevice.cpp @@ -20,7 +20,7 @@ void BangleJSDevice::pair() setConnectionState("pairing"); emit connectionStateChanged(); - QBLEDevice::connectToDevice(); + QBLEDevice::pair(); } int BangleJSDevice::supportedFeatures() const diff --git a/daemon/src/devices/pinetimejfdevice.cpp b/daemon/src/devices/pinetimejfdevice.cpp index e860bce0..3d6b3e83 100644 --- a/daemon/src/devices/pinetimejfdevice.cpp +++ b/daemon/src/devices/pinetimejfdevice.cpp @@ -58,14 +58,15 @@ void PinetimeJFDevice::pair() { qDebug() << Q_FUNC_INFO; - m_needsAuth = false; + m_needsAuth = true; m_pairing = true; m_autoreconnect = true; - //disconnectFromDevice(); + disconnectFromDevice(); setConnectionState("pairing"); emit connectionStateChanged(); - QBLEDevice::connectToDevice(); + QBLEDevice::pair(); + } int PinetimeJFDevice::supportedFeatures() const