summaryrefslogtreecommitdiffstats
path: root/ruby/ffi-k8055
diff options
context:
space:
mode:
Diffstat (limited to 'ruby/ffi-k8055')
-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