Skip to content

Commit

Permalink
Fix compilation with hid4java snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
tresf committed Aug 7, 2021
1 parent df43410 commit c8ef423
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Binary file added lib/communication/jssc-2.9.3-SNAPSHOT.jar
Binary file not shown.
6 changes: 6 additions & 0 deletions src/qz/communication/H4J_HidListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ public void hidFailure(HidServicesEvent hidServicesEvent) {
PrintSocketClient.sendStream(session, createStreamAction(hidServicesEvent.getHidDevice(), "Device Failure"));
}

@Override
public void hidDataReceived(HidServicesEvent hidServicesEvent) {
log.debug("Data received: {}", hidServicesEvent.getDataReceived().length + " bytes");
// TODO: Handle event?
}

@Override
public void hidDeviceDetached(HidServicesEvent hidServicesEvent) {
log.debug("Device detached: {}", hidServicesEvent.getHidDevice().getProduct());
Expand Down

0 comments on commit c8ef423

Please sign in to comment.