aboutsummaryrefslogtreecommitdiff
path: root/modules/GenericSensor.js
diff options
context:
space:
mode:
Diffstat (limited to 'modules/GenericSensor.js')
-rw-r--r--modules/GenericSensor.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/modules/GenericSensor.js b/modules/GenericSensor.js
index 12e688a..ec59e61 100644
--- a/modules/GenericSensor.js
+++ b/modules/GenericSensor.js
@@ -67,6 +67,11 @@ function GenericSensor() {
currentState = sensor.state;
defaultState = sensor.state;
+ assert(typeof currentState === "string" && currentState !== null,
+ "sensor: current state as '" + currentState + "'");
+
+ console.log("currentstate: " + currentState);
+
middleState = sensor.state;
sensor.state = middleState + "love";
assert(sensor.state === middleState,
@@ -163,9 +168,11 @@ function GenericSensor() {
stopState === "idle" &&
startState === "activated",
"sensor: be stopped");
+ }, 20000);
+ setTimeout(function() {
result();
- }, 20000);
+ }, 25000);
}
return genericSensor;