lib/artoo/drivers/button.rb in artoo-arduino-1.0.0.pre vs lib/artoo/drivers/button.rb in artoo-arduino-1.0.1

- old
+ new

@@ -28,10 +28,11 @@ super end def handle_events while i = find_event("digital-read-#{pin}") do - update(events.slice!(i).data.first) + event = events.slice!(i) + update(event.data.first) if !event.nil? end end def find_event(name) events.index {|e| e.name == name}