green_eye_monitor 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/green_eye_monitor/client.rb +2 -1
- data/lib/green_eye_monitor/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 40a349cf7f93cf035f1f2bdc2f8ad697537f045b
|
4
|
+
data.tar.gz: 70c474480c45c022bfc7a6487e3d3b59ba54833f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd9953572437c8c51db7dfb988f1b2d0502bf25e3dab3bd36d07241c705fea40937665a51bfb087a177ea8ba7ed4bf7e82ba2debdd9be303d6aa26f1a5d4bc12
|
7
|
+
data.tar.gz: 6be5f19032e47ef3fa0a10aeef7beb30480ff252c756728478c2a2f6cb32ed0417d984346c29692888b478929bd85fce1edd8878cf0802531a31508b0d19668e
|
data/CHANGELOG.md
CHANGED
@@ -269,9 +269,10 @@ module GreenEyeMonitor
|
|
269
269
|
iterations = 5 * 1_000 / @serial.read_timeout
|
270
270
|
|
271
271
|
i = 0
|
272
|
+
byte = nil
|
272
273
|
loop do
|
273
274
|
byte = @serial.getbyte
|
274
|
-
break
|
275
|
+
break unless byte.nil?
|
275
276
|
|
276
277
|
i += 1
|
277
278
|
raise(Errors::Timeout, 'Waited too long for data') if i > iterations
|