lightwaverf 0.0.6 → 0.0.7
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.
- data/lib/lightwaverf.rb +2 -5
- metadata +1 -1
data/lib/lightwaverf.rb
CHANGED
|
@@ -119,11 +119,8 @@ class LightWaveRF
|
|
|
119
119
|
|
|
120
120
|
def energy
|
|
121
121
|
data = self.raw '666,@?'
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
rescue
|
|
125
|
-
data
|
|
126
|
-
end
|
|
122
|
+
# /W=(?<usage>\d+),(?<max>\d+),(?<today>\d+),(?<yesterday>\d+)/.match( data ) # ruby 1.9 only?
|
|
123
|
+
/W=(\d+),(\d+),(\d+),(\d+)/.match( data )
|
|
127
124
|
end
|
|
128
125
|
|
|
129
126
|
def raw command
|