From e10d64c8aff4fd9af734fbd726e32b0ef61fefe6 Mon Sep 17 00:00:00 2001 From: Hans Huebner Date: Sun, 1 Oct 2017 06:52:05 +0200 Subject: [PATCH] Fix README.md issue --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8d2c586..8d3c455 100644 --- a/README.md +++ b/README.md @@ -107,7 +107,7 @@ for (HidDeviceInfo info : devList) { ... and then open and attach an input report listener to it: ```java -HidDevice dev=PureJavaHidApi.openDevice(devInfo.getPath()); +HidDevice dev=PureJavaHidApi.openDevice(devInfo); dev.setInputReportListener(new InputReportListener() { @Override public void onInputReport(HidDevice source, byte Id, byte[] data, int len) {