Skip to content

Commit

Permalink
Merge pull request piggz#427 from jmlich/pair-instead-connect
Browse files Browse the repository at this point in the history
pair function shoud invoke QBLEDevice::pair()
  • Loading branch information
piggz authored Nov 22, 2024
2 parents 540f783 + 932260b commit 5d07488
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 5d07488

Please sign in to comment.