W3C home > Mailing lists > Public > public-device-apis-log@w3.org > February 2017

Re: [sensors] What if setting a negative frequency?

From: Tobie Langel via GitHub <sysbot+gh@w3.org>
Date: Mon, 20 Feb 2017 14:56:22 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-281099883-1487602580-sysbot+gh@w3.org>
So the spec says frequency must be "capped by the upper and lower 
bounds of the underlying hardware" ([Step 3 of "observe a 
sensor"](https://w3c.github.io/sensors/#observe-a-sensor)). So we 
shouldn't throw a `RangeError`. On the other hand, a negative 
frequency doesn't really mean anything. I'm torn.

GitHub Notification of comment by tobie
Please view or discuss this issue at 
https://github.com/w3c/sensors/issues/169#issuecomment-281099883 using
 your GitHub account
Received on Monday, 20 February 2017 14:56:28 UTC

This archive was generated by hypermail 2.4.0 : Monday, 4 July 2022 12:47:53 UTC