Skip to content

Commit

Permalink
- UsbMassStorageDeviceConfig: added manufacturer and product and sett…
Browse files Browse the repository at this point in the history
…ing this variables

- setting version to 0.4.1-SNAP
  • Loading branch information
andy.rozman committed Apr 15, 2024
1 parent 54f6a6c commit 1f866cd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion libaums/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>com.atech-software.libaums-usb4java</groupId>
<artifactId>libaums-usb4java-root</artifactId>
<version>0.4.0-SNAPSHOT</version>
<version>0.4.1-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ public class UsbMassStorageDeviceConfig {
private byte inEndpointAddress;
private byte outEndpointAddress;
private String readableDeviceId;
private String manufacturer;
private String product;

public String vendorIdAsString() {
return String.format("%04x", vendorId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,8 @@ public static List<UsbMassStorageDeviceConfig> getListOfAttachedUsbMassStorageDe
.interfaceNumber(usbInterface.bInterfaceNumber())
.inEndpointAddress(inEndpoint.bEndpointAddress())
.outEndpointAddress(outEndpoint.bEndpointAddress())
.manufacturer(device.getManufacturerString())
.product(device.getProductString())
.build();

log.info("Found relevant usb device: {} - {}", device.getReadableId() , device.getManufacturerAndProductName());
Expand Down
6 changes: 1 addition & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,17 @@
<groupId>com.atech-software.libaums-usb4java</groupId>
<name>libaums-usb4java-root</name>
<artifactId>libaums-usb4java-root</artifactId>
<version>0.4.0-SNAPSHOT</version>
<version>0.4.1-SNAPSHOT</version>
<packaging>pom</packaging>

<dependencyManagement>
<dependencies>

<dependency>
<groupId>com.atech-software.libaums-usb4java</groupId>
<artifactId>libaums-usb4java</artifactId>
<version>${project.version}</version>
</dependency>

</dependencies>


</dependencyManagement>


Expand Down

0 comments on commit 1f866cd

Please sign in to comment.