Details
Description
When testing the ambient light sensor on a Lumia 1520, a divide-by-zero hits in WinRtAmbientLightSensor::start():
quint32 reportInterval = qMax(d->minimumReportInterval, quint32(1000/sensor()->dataRate()));
due to dataRate() returning 0.
Attachments
For Gerrit Dashboard: QTBUG-40664 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
91747,2 | winrt: Avoid divide-by-zero when starting sensors | dev | qt/qtsensors | Status: MERGED | +2 | 0 |
91750,4 | Set dataRates for sensors | dev | qt/qtsensors | Status: MERGED | +2 | 0 |