summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-02-16 00:55:41 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2012-02-16 00:55:41 +0100
commit0aebc2c00092a1c637830732d5c027d7309be071 (patch)
tree6cf71eeaeb8907021dfbdf17b640c2bf8e8e3386
parentbaa5b43c305212e04404177e82a9eae72bc702f4 (diff)
downloadk8055-0aebc2c00092a1c637830732d5c027d7309be071.zip
k8055-0aebc2c00092a1c637830732d5c027d7309be071.tar.gz
ruby: follow k8055_search_devices and k8055_get_debug API changes
-rw-r--r--ruby/ffi-k8055/lib/k8055.rb4
-rw-r--r--ruby/ffi-k8055/spec/k8055_spec.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/ruby/ffi-k8055/lib/k8055.rb b/ruby/ffi-k8055/lib/k8055.rb
index 012b0ac..ba35f88 100644
--- a/ruby/ffi-k8055/lib/k8055.rb
+++ b/ruby/ffi-k8055/lib/k8055.rb
@@ -43,9 +43,9 @@ module K8055
[ :k8055_counter_1, [:k8055_dev], :int],
[ :k8055_counter_2, [:k8055_dev], :int],
[ :k8055_version, [], :string],
- [ :k8055_set_debug, [:int], :int],
+ [ :k8055_set_debug, [:k8055_dev, :int], :int],
[ :k8055_get_debug, [], :int],
- [ :k8055_search_devices, [], :int],
+ [ :k8055_search_devices, [:int], :int],
[ :k8055_open_device, [:k8055_dev,:int], :int],
[ :k8055_close_device, [:k8055_dev], :int],
[ :k8055_set_analog_channel, [:k8055_dev,:int], :int],
diff --git a/ruby/ffi-k8055/spec/k8055_spec.rb b/ruby/ffi-k8055/spec/k8055_spec.rb
index 310f9b6..1d4d7c3 100644
--- a/ruby/ffi-k8055/spec/k8055_spec.rb
+++ b/ruby/ffi-k8055/spec/k8055_spec.rb
@@ -10,7 +10,7 @@ describe K8055 do
end
#
it "search_devices should find one" do
- K8055.search_devices.should > 0
+ K8055.search_devices(0).should > 0
end
#
describe K8055 do