Skip to content
This repository has been archived by the owner on Mar 29, 2020. It is now read-only.

Commit

Permalink
Quickfix to allow Windows PCs to connect to the reader
Browse files Browse the repository at this point in the history
  • Loading branch information
rogierslag committed Sep 1, 2015
1 parent a57e5d4 commit 793e17c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions create-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ export BUILD_DATE=`date` && \
echo $RELEASE_ID && \
curl -POST -u inventid-deploy:$GITHUB_PASS $UPLOAD_URL -H "Content-Type: application/java-archive" --data-binary @target/rfid-reader2keyboard-1.0-SNAPSHOT.jar

env
4 changes: 2 additions & 2 deletions src/main/java/nl/inventid/rfidReader2keyboard/Read.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/
public class Read extends Thread {

private static final String TERMINAL_REQUIRED = "ACS ACR122U PICC Interface";
private static final String TERMINAL_REQUIRED = "ACR122";
private static final byte[] READ_COMMAND = new byte[] { (byte) 0xFF, (byte) 0xCA, (byte) 0x00,
(byte) 0x00, (byte) 0x00 };

Expand Down Expand Up @@ -44,7 +44,7 @@ public Read() {
System.out.println("Trying to attach to " + TERMINAL_REQUIRED);
for (int i = 0; i < terminals.size(); i++) {
System.out.println(terminals.get(i));
if (terminals.get(i).getName().equals(TERMINAL_REQUIRED)) {
if (terminals.get(i).getName().contains(TERMINAL_REQUIRED)) {
terminal = terminals.get(i);
}
}
Expand Down

0 comments on commit 793e17c

Please sign in to comment.