Permalink
Browse files

Fix abort on OS X

  • Loading branch information...
tpope committed Mar 7, 2011
1 parent c0c0118 commit 6be55739f61a4d57834df291825005833e90710e
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/zerbo.rb
View
@@ -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

0 comments on commit 6be5573

Please sign in to comment.