lib/tamashii/agent/device/keyboard/ttp229_serial.rb in tamashii-agent-0.3.3 vs lib/tamashii/agent/device/keyboard/ttp229_serial.rb in tamashii-agent-0.3.4
- old
+ new
@@ -31,11 +31,11 @@
def default_sdo_pin
4
end
def finalize_hardware
- unexport_pin(fetch_option(:scl_pin, default_scl_pin))
- unexport_pin(fetch_option(:sdo_pin, default_sdo_pin))
+ unexport_pin(@scl_pin.pin)
+ unexport_pin(@sdo_pin.pin)
end
def read_key
current_key = nil
@number_of_keys.times do |key|