projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add .gitignore files for new projects
[fw/altos]
/
altosuilib
/
AltosUSBDevice.java
diff --git
a/altosuilib/AltosUSBDevice.java
b/altosuilib/AltosUSBDevice.java
index f43d6befda46e57ec9ee26f0d105452308afe9b9..e4b94eeaed77efd12645dc208f57452f31fee2af 100644
(file)
--- a/
altosuilib/AltosUSBDevice.java
+++ b/
altosuilib/AltosUSBDevice.java
@@
-20,6
+20,7
@@
package org.altusmetrum.altosuilib_13;
import java.util.*;
import libaltosJNI.*;
import java.util.*;
import libaltosJNI.*;
+import org.altusmetrum.altoslib_13.*;
public class AltosUSBDevice extends altos_device implements AltosDevice {
public class AltosUSBDevice extends altos_device implements AltosDevice {
@@
-98,6
+99,14
@@
public class AltosUSBDevice extends altos_device implements AltosDevice {
return getVendor() ^ getProduct() ^ getSerial() ^ getPath().hashCode();
}
return getVendor() ^ getProduct() ^ getSerial() ^ getPath().hashCode();
}
+ public AltosUsbId usb_id() {
+ return new AltosUsbId(getVendor(), getProduct());
+ }
+
+ public String usb_product() {
+ return getName();
+ }
+
public boolean equals(Object o) {
if (o == null)
return false;
public boolean equals(Object o) {
if (o == null)
return false;