mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
BT40Device - Fix Ignoring the CSC service for device xxx message
The "Ignoring the CSC service for device..." was intended to notify when power sensor is present the CSC service is ignored since it is redundant and may cause problems, but it is misleading when there is no CSC or Power service. Reported in #3471
This commit is contained in:
@@ -170,16 +170,18 @@ BT40Device::serviceScanDone()
|
||||
}
|
||||
}
|
||||
|
||||
if (csc_service && has_csc && !has_power) {
|
||||
if (csc_service && has_csc) {
|
||||
if (!has_power) {
|
||||
|
||||
// Only connect to CSC service if the same device doesn't provide a power service
|
||||
// since the power service also provides the same readings.
|
||||
qDebug() << "Connecting to the CSC service for device" << m_currentDevice.name() << " " << m_currentDevice.deviceUuid();
|
||||
csc_service->discoverDetails();
|
||||
// Only connect to CSC service if the same device doesn't provide a power service
|
||||
// since the power service also provides the same readings.
|
||||
qDebug() << "Connecting to the CSC service for device" << m_currentDevice.name() << " " << m_currentDevice.deviceUuid();
|
||||
csc_service->discoverDetails();
|
||||
|
||||
} else {
|
||||
} else {
|
||||
|
||||
qDebug() << "Ignoring the CSC service for device" << m_currentDevice.name() << " " << m_currentDevice.deviceUuid();
|
||||
qDebug() << "Ignoring the CSC service for device" << m_currentDevice.name() << " " << m_currentDevice.deviceUuid();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user