Skip to content

Commit

Permalink
Domyos Run500 do have 5 speed/inclination quick-button #2345
Browse files Browse the repository at this point in the history
  • Loading branch information
cagnulein committed May 21, 2024
1 parent 3d4e077 commit d2ed216
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/devices/domyostreadmill/domyostreadmill.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -827,8 +827,12 @@ void domyostreadmill::serviceScanDone(void) {
emit debug(QStringLiteral("serviceScanDone"));

gattCommunicationChannelService = m_control->createServiceObject(_gattCommunicationChannelServiceId);
connect(gattCommunicationChannelService, &QLowEnergyService::stateChanged, this, &domyostreadmill::stateChanged);
gattCommunicationChannelService->discoverDetails();
if (gattCommunicationChannelService) {
connect(gattCommunicationChannelService, &QLowEnergyService::stateChanged, this, &domyostreadmill::stateChanged);
gattCommunicationChannelService->discoverDetails();
} else {
emit debug(QStringLiteral("error on find Service"));
}
}

void domyostreadmill::errorService(QLowEnergyService::ServiceError err) {
Expand Down

0 comments on commit d2ed216

Please sign in to comment.