gpsd_baud_rate 0.1.15 → 0.1.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gpsd_baud_rate.rb +6 -6
- data/lib/gpsd_baud_rate/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: c2fb192f036b4f0db6eb2793863c154272f7c76f0cfd45b492324156a18aba1e
|
4
|
+
data.tar.gz: b0db4f3bac4e2d769361172d37c77284850030efbad370c70bb741d5fc66e9bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3794b039fcc73db51ebaadab8692ee36b5c9f14e2d57beb6d2f191e4be616a6c08a46e47b4a83357dd7d6a432136be0a5c35ceeccb8f28964ab4f4cbc9c59966
|
7
|
+
data.tar.gz: 1bc181c62103e70c24197ae251fef229f1105b00e25c01cd1762ea03163e3ed7a5bb24700601b073eb5179bf8b6eeb4d5b2514bd3b2c8afffc2427624d413d0d
|
data/lib/gpsd_baud_rate.rb
CHANGED
@@ -35,13 +35,13 @@ class GpsdBaudRate
|
|
35
35
|
end #initiallize
|
36
36
|
|
37
37
|
def set_baud_rate b_rate = @goal_rate
|
38
|
-
gpsd_start unless gpsd_active? #make sure it's running
|
38
|
+
gpsd_start unless self.gpsd_active? #make sure it's running
|
39
39
|
|
40
|
-
@logger.debug "Service Status: #{gpsd_active?}"
|
41
|
-
@logger.debug "Baud Rate: #{active_rate = baud_rate}"
|
42
|
-
gpsd_stop
|
43
|
-
@logger.debug "Service Status: #{gpsd_active?}"
|
44
|
-
@logger.debug "Baud Rate: #{inactive_rate = baud_rate}"
|
40
|
+
@logger.debug "Service Status: #{self.gpsd_active?}"
|
41
|
+
@logger.debug "Baud Rate: #{active_rate = self.baud_rate}"
|
42
|
+
self.gpsd_stop
|
43
|
+
@logger.debug "Service Status: #{self.gpsd_active?}"
|
44
|
+
@logger.debug "Baud Rate: #{inactive_rate = self.baud_rate}"
|
45
45
|
|
46
46
|
@logger.debug "\n~~~~~~~~~~~~ Read at #{active_rate} baud ~~~~~~~~~~~~~~"
|
47
47
|
if (read_from_device active_rate) && (active_rate != b_rate)
|