diff options
author | Jimmy Huang <jimmy.huang@linux.intel.com> | 2017-03-03 14:46:47 -0800 |
---|---|---|
committer | Geoff Gustafson <geoff@linux.intel.com> | 2017-03-03 14:46:47 -0800 |
commit | b29dbbcb7dbc1b6a2f08d7e9e8a1aea46941f82b (patch) | |
tree | ac8500cd348ca0bc2593c8948322ba8bd5bc378b /modules/GenericSensor.js | |
parent | debcb1d79c024385cd8b76df000670ae5600cb24 (diff) |
[sensor] Added default state "unconnected" (#789)
The default state is no longer "idle" and should be "unconnected",
also it should be a readonly property, and readings should also
be readonly as well
Signed-off-by: Jimmy Huang <jimmy.huang@intel.com>
Diffstat (limited to 'modules/GenericSensor.js')
-rw-r--r-- | modules/GenericSensor.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/GenericSensor.js b/modules/GenericSensor.js index 3f379ba..73880ce 100644 --- a/modules/GenericSensor.js +++ b/modules/GenericSensor.js @@ -153,7 +153,7 @@ function GenericSensor() { setTimeout(function() { startState = sensor.state; assert(defaultState !== startState && - defaultState === "idle" && + defaultState === "unconnected" && startState === "activated", "sensor: be started"); }, 1000); |