equal
deleted
inserted
replaced
190 |
190 |
191 SENSORLOG() << "no suitable backend found for requested identifier" << sensor->identifier() << "and type" << sensor->type(); |
191 SENSORLOG() << "no suitable backend found for requested identifier" << sensor->identifier() << "and type" << sensor->type(); |
192 return 0; |
192 return 0; |
193 |
193 |
194 gotbackend: |
194 gotbackend: |
195 if (sensor->availableDataRates().count() == 0) { |
195 if (sensor->availableDataRates().count() != 0 && sensor->dataRate() == 0) { |
196 qWarning() << sensor->identifier() << "backend does not support any data rates. It cannot be used."; |
|
197 } |
|
198 if (sensor->dataRate() == 0) { |
|
199 qWarning() << sensor->identifier() << "backend did not supply default data rate."; |
196 qWarning() << sensor->identifier() << "backend did not supply default data rate."; |
200 } |
197 } |
201 return backend; |
198 return backend; |
202 } |
199 } |
203 |
200 |