Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Syncleus
apex-aprs
Commits
64957c6f
Commit
64957c6f
authored
Oct 01, 2016
by
Jeffrey Phillips Freeman
💥
Browse files
Fixed a bug where an exception was thrown if reading returned nil.
parent
dd1ba05f
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/kiss/kiss_serial.rb
View file @
64957c6f
...
...
@@ -30,7 +30,11 @@ module Kiss
protected
def
read_interface
read_data
=
@serial
.
read
(
@read_bytes
)
read_data
.
map
{
|
c
|
c
.
ord
}
if
read_data
return
read_data
.
map
{
|
c
|
c
.
ord
}
else
return
nil
end
end
protected
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment