Closed Bug 847227 Opened 11 years ago Closed 11 years ago

light sensor doesn't report min/max values

Categories

(Firefox OS Graveyard :: General, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: gal, Assigned: dougt)

Details

Attachments

(1 file)

The max value seems 10240 on most devices, but still.
Attached patch patchSplinter Review
Hey doug could you drive this in please? Not needed for 1.0.1 though
Assignee: nobody → doug.turner
I am about to add some code to gaia that hacks around this and should be fixed when this lands.
Andreas,

This API doesn't expose min or max, just ambient light level:

   http://www.w3.org/TR/ambient-light/

We probably can suggest these, but I am not sure what the value really is.  Instead, let me ask --

What are you trying to do?  Would using proximity make more sense (which should already have min and max defined?)

   http://www.w3.org/TR/2012/WD-proximity-20120712/#idl-def-DeviceProximityEvent
Android also does not expose min and max -- just exposing lux.

    http://developer.android.com/reference/android/hardware/Sensor.html#TYPE_LIGHT
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
Depends on: 924719
No longer depends on: 924719
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: