domotics-arduino 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -21,12 +21,12 @@ module Domotics
|
|
21
21
|
|
22
22
|
# Convert to High Level State
|
23
23
|
def to_hls(value)
|
24
|
-
value ==
|
24
|
+
value == ArduinoBase::HIGH ? :on : :off
|
25
25
|
end
|
26
26
|
|
27
27
|
# Convert to Low Level State
|
28
28
|
def to_lls(value)
|
29
|
-
value == :on ?
|
29
|
+
value == :on ? ArduinoBase::HIGH : ArduinoBase::LOW
|
30
30
|
end
|
31
31
|
end
|
32
32
|
end
|