w3c / sensors

Generic Sensor API
https://www.w3.org/TR/generic-sensor/
Other
127 stars 59 forks source link

Sensor.timestamp: Account for "get value from latest reading" returning null #480

Closed rakuco closed 5 months ago

rakuco commented 5 months ago

This addresses a regression introduced by #469. The current algorithm assumes that "get value from latest reading" never returns null, which is not the case.

Return null when it does instead of passing an invalid value to "relative high resolution time".


Preview | Diff