Skip to content

Commit

Permalink
Run block only if given (to match Readme behaviour)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewn committed Sep 25, 2013
1 parent bd7edd8 commit b6a8798
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/wiringpi/gpio.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class GPIO
def initialize(&block)
Wiringpi2.wiringPiSetup
@pins = Array.new
instance_eval &block
instance_eval &block if block_given?
end

def read_byte(starting_pin)
Expand Down

0 comments on commit b6a8798

Please sign in to comment.