gpsd_baud_rate 0.1.26 → 0.1.27
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 +5 -1
- 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: b2f75b1396a58899a975340be76c35f529bfb8b0e237ac1836f16f6304e17676
|
4
|
+
data.tar.gz: 800656f2f29ce0ab9da7cc05d8ff7a4fdcb983563f01cf5262729421eb345ebc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6505d6cc639b7b684b5295601f69798e1989a68a6a37c8b3c0b2b8d25b8a5bdc5c9c009da91c3a0dadb8be0c5bb5aa2b50f937c5f15de45060e4176bb745fdc
|
7
|
+
data.tar.gz: a729c439a6189d9988c3a0a81ef296a22c082e538a869095b3efc369efae97fa3d8a5f18e8f1fff754773f23b2e4a12afcb9228d31e92491ee23cf0c6b9ad7b0
|
data/lib/gpsd_baud_rate.rb
CHANGED
@@ -172,8 +172,11 @@ private
|
|
172
172
|
end
|
173
173
|
@logger.debug "Bytes Written: #{count}"
|
174
174
|
|
175
|
+
@logger.debug "Sleeping 2 seconds..."
|
176
|
+
sleep 2
|
177
|
+
|
175
178
|
begin
|
176
|
-
@logger.debug "Receive response @ #{@goal_rate}"
|
179
|
+
@logger.debug "Receive response @ #{@goal_rate}, #{@goal_rate.class}"
|
177
180
|
ser = SerialPort.open( @@device, @goal_rate, 8, 1, SerialPort::NONE) { |ser|
|
178
181
|
ser.read_timeout = 900
|
179
182
|
10.times {results << ser.readline(100)}
|
@@ -184,6 +187,7 @@ private
|
|
184
187
|
@logger.debug "Error: #{e.inspect}"
|
185
188
|
end
|
186
189
|
results.each { |r| @logger.debug "Results: #{r}"}
|
190
|
+
|
187
191
|
GpsdBaudRate::gpsd_start
|
188
192
|
|
189
193
|
end
|