Skip to content

Commit

Permalink
reduce non covered code
Browse files Browse the repository at this point in the history
move HexDump class from library to example
remove unused UsbSerialRuntimeException
  • Loading branch information
kai-morich committed Oct 21, 2019
1 parent ac1fe40 commit 37059b1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 50 deletions.
Expand Up @@ -49,7 +49,6 @@
import com.hoho.android.usbserial.driver.UsbSerialDriver;
import com.hoho.android.usbserial.driver.UsbSerialPort;
import com.hoho.android.usbserial.driver.UsbSerialProber;
import com.hoho.android.usbserial.util.HexDump;

import java.util.ArrayList;
import java.util.List;
Expand Down Expand Up @@ -134,9 +133,7 @@ public View getView(int position, View convertView, ViewGroup parent) {
final UsbSerialDriver driver = port.getDriver();
final UsbDevice device = driver.getDevice();

final String title = String.format("Vendor %s Product %s",
HexDump.toHexString((short) device.getVendorId()),
HexDump.toHexString((short) device.getProductId()));
final String title = String.format("Vendor %4X Product %4X", device.getVendorId(), device.getProductId());
row.getText1().setText(title);

final String subtitle = driver.getClass().getSimpleName();
Expand Down

This file was deleted.

0 comments on commit 37059b1

Please sign in to comment.