Skip to content
This repository has been archived by the owner on Sep 3, 2023. It is now read-only.

Commit

Permalink
Fix abort on OS X
Browse files Browse the repository at this point in the history
  • Loading branch information
tpope committed Mar 7, 2011
1 parent c0c0118 commit 6be5573
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/zerbo.rb
Expand Up @@ -17,7 +17,9 @@ def initialize(device=nil)
else
require 'serialport'
@device = SerialPort.new(device, 38400)
@device.read_timeout = 0
unless RUBY_PLATFORM =~ /darwin/
@device.read_timeout = 0
end
end
@callbacks = []
end
Expand Down

0 comments on commit 6be5573

Please sign in to comment.