Skip to content

Commit

Permalink
pair function shoud invoke QBLEDevice::pair()
Browse files Browse the repository at this point in the history
  • Loading branch information
jmlich committed Nov 22, 2024
1 parent 540f783 commit 932260b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion daemon/src/devices/asteroidosdevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ void AsteroidOSDevice::pair()
setConnectionState("pairing");
emit connectionStateChanged();

QBLEDevice::connectToDevice();
QBLEDevice::pair();
}


Expand Down
2 changes: 1 addition & 1 deletion daemon/src/devices/banglejsdevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ void BangleJSDevice::pair()
setConnectionState("pairing");
emit connectionStateChanged();

QBLEDevice::connectToDevice();
QBLEDevice::pair();
}

int BangleJSDevice::supportedFeatures() const
Expand Down
7 changes: 4 additions & 3 deletions daemon/src/devices/pinetimejfdevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 932260b

Please sign in to comment.