Skip to content
Browse files

clear bin

  • Loading branch information...
1 parent 7907763 commit bf66b3224bfdd56135efdde2458b8b4ec02567f6 @nofxx nofxx committed Apr 12, 2012
Showing with 2 additions and 5 deletions.
  1. +2 −5 bin/pirate
View
7 bin/pirate
@@ -2,15 +2,12 @@
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'buspirate'
-DEFAULT_BAUDRATE = 115200
-DEFAULT_DATABITS = 8
-DEFAULT_STOPBITS = 1
-DEFAULT_PARITY = SerialPort::NONE
+
DEFAULT_DEVICE = Dir.glob('/dev/ttyACM*').first
def buspirate
- @pirate ||= BusPirate.new(DEFAULT_DEVICE, DEFAULT_BAUDRATE, DEFAULT_DATABITS, DEFAULT_STOPBITS, DEFAULT_PARITY)
+ @pirate ||= BusPirate.new(DEFAULT_DEVICE)
end
def warm_up

0 comments on commit bf66b32

Please sign in to comment.
Something went wrong with that request. Please try again.