Skip to content

Commit

Permalink
Garmin Cadence Sensor not sending data (Issue #1704)
Browse files Browse the repository at this point in the history
  • Loading branch information
cagnulein committed Oct 17, 2023
1 parent 42c2c52 commit 67398fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cscbike.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ void cscbike::stateChanged(QLowEnergyService::ServiceState state) {

for (QLowEnergyService *s : qAsConst(gattCommunicationChannelService)) {
if (s->state() == QLowEnergyService::ServiceDiscovered &&
// some sensors has some custom services, if you subscribe to them they will not send cadence
(s->serviceUuid() == CyclingSpeedAndCadence || s->serviceUuid() == BatteryService)) {
// establish hook into notifications
connect(s, &QLowEnergyService::characteristicChanged, this, &cscbike::characteristicChanged);
Expand Down

0 comments on commit 67398fc

Please sign in to comment.