domotics-arduino 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
|