lib/ffi/wiring_pi/gpio.rb in ffi-wiring_pi-0.1.3 vs lib/ffi/wiring_pi/gpio.rb in ffi-wiring_pi-0.1.4
- old
+ new
@@ -110,15 +110,15 @@
@position = position
@mode = mode
end
def up!
- raise ArgumentError('Can only set in OUTPUT mode') && return unless @mode == OUTPUT
+ raise ArgumentError('Can only set in OUTPUT mode') && return unless @mode == FFI::WiringPi::GPIO::OUTPUT
GPIO.up(@position)
end
def down!
- raise ArgumentError('Can only set in OUTPUT mode') && return unless @mode == OUTPUT
+ raise ArgumentError('Can only set in OUTPUT mode') && return unless @mode == FFI::WiringPi::GPIO::OUTPUT
GPIO.down(@position)
end
end
end