projects
/
smartthings-infrastructure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixing a bug in MusicPlayer.
[smartthings-infrastructure.git]
/
AccelerationSensor
/
AccelerationSensor.groovy
diff --git
a/AccelerationSensor/AccelerationSensor.groovy
b/AccelerationSensor/AccelerationSensor.groovy
index 1bec3cd303ea0785c7a499fde1525cf05b16420c..78a9bed73ee91a74c48af4af5c3c46897777a28d 100644
(file)
--- a/
AccelerationSensor/AccelerationSensor.groovy
+++ b/
AccelerationSensor/AccelerationSensor.groovy
@@
-22,8
+22,8
@@
public class AccelerationSensor {
}
def setValue(String value) {
}
def setValue(String value) {
- this.accelerationLatestValue = acceleration
println("the acceleration sensor with id:$id is triggered to $value!")
println("the acceleration sensor with id:$id is triggered to $value!")
+ this.accelerationLatestValue = value
this.acceleration = value
this.currentAcceleration = value
this.states.add(value)
this.acceleration = value
this.currentAcceleration = value
this.states.add(value)