aboutsummaryrefslogtreecommitdiff
path: root/modules/GenericSensor.js
diff options
context:
space:
mode:
authorJimmy Huang <jimmy.huang@linux.intel.com>2017-03-03 14:46:47 -0800
committerGeoff Gustafson <geoff@linux.intel.com>2017-03-03 14:46:47 -0800
commitb29dbbcb7dbc1b6a2f08d7e9e8a1aea46941f82b (patch)
treeac8500cd348ca0bc2593c8948322ba8bd5bc378b /modules/GenericSensor.js
parentdebcb1d79c024385cd8b76df000670ae5600cb24 (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.js2
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);