From 69bde2fdc3f353006dd1e68918371f5b8df8a4f0 Mon Sep 17 00:00:00 2001 From: Patrick Hemmer Date: Thu, 26 Jun 2014 20:32:15 -0400 Subject: [PATCH] remove mode setting on initialize shokai/arduino_firmata#36 --- lib/arduino_firmata/arduino.rb | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lib/arduino_firmata/arduino.rb b/lib/arduino_firmata/arduino.rb index e8c23ed..eaa4bf7 100644 --- a/lib/arduino_firmata/arduino.rb +++ b/lib/arduino_firmata/arduino.rb @@ -50,15 +50,6 @@ def initialize(serialport_name, params) break if @version end sleep 3 if old_arduino_device? - - (0...6).each do |i| - write(REPORT_ANALOG | i) - write 1 - end - (0...2).each do |i| - write(REPORT_DIGITAL | i) - write 1 - end end def run(&block)