tilt_hydrometer 0.2.0.pre4 → 0.2.0.pre5
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of tilt_hydrometer might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/lib/tilt_hydrometer/core.rb +1 -1
- data/lib/tilt_hydrometer/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f32757824b96b98f2689227f48cbe663f73f3287d65a4e4458ff78f487c9637
|
4
|
+
data.tar.gz: 965b7955c53d8f5a9b230fc405207b03208bd18c78dfbf234e8bc659946f38b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d0969cb4d03261aacb0d8f3190d8ea6a4887965307b60b9315d7cc74fa9394540a1d6c48107a307a18ff34d55e789bfe813e2af289abb75a951c1dba1c598d2
|
7
|
+
data.tar.gz: a27bb6153c600175a8a4c678d2123861a7cf14f85f16c00d4b018b897b34100374926d8b8d882aebe6c4578ed20e7f9dce5898b452e26ad13798f2ac9300a187
|
data/lib/tilt_hydrometer/core.rb
CHANGED
@@ -32,7 +32,7 @@ module TiltHydrometer
|
|
32
32
|
if match = data.match(/\h{40}(A495BB[1-8]0C5B14B44B5121370F02D74DE)(\h{4})(\h{4})(\h{2})(\h{2})/i)
|
33
33
|
uuid, temp, gravity, _power, _rssi = match.captures
|
34
34
|
|
35
|
-
beacon = Beacon.new(uuid, temp, gravity)
|
35
|
+
beacon = Beacon.new(uuid, temp.to_i(16), gravity.to_i(16))
|
36
36
|
beacon.log
|
37
37
|
|
38
38
|
if beacon.values_out_of_range?
|