Skip to content

Commit

Permalink
USB: UsbSerial 6.1.0 with @mobilinkd CDC fix
Browse files Browse the repository at this point in the history
Compilation, in UsbSerial directory:

	cd usbserial && \
	../gradlew build && \
	unzip build/outputs/aar/usbserial-debug.aar classes.jar && \
	mv classes.jar ../../aprsdroid/libs/usbserial-6.1.0.jar

Details:
#264 (comment)
  • Loading branch information
ge0rg committed Aug 15, 2020
1 parent 6db2eca commit 1dd06c6
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,6 @@ dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.google.android.gms:play-services-maps:17.0.0'
implementation 'com.google.maps.android:android-maps-utils:0.5'

implementation 'com.squareup.okio:okio:2.1.0'
}
Binary file removed libs/usbserial-4.5.1.jar
Binary file not shown.
Binary file added libs/usbserial-6.1.0-cdc.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion src/backend/UsbTnc.scala
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class UsbTnc(service : AprsService, prefs : PrefsWrapper) extends AprsBackend(pr
override def run() {
val con = usbManager.openDevice(dev)
ser = UsbSerialDevice.createUsbSerialDevice(dev, con)
if (ser == null || !ser.open()) {
if (ser == null || !ser.syncOpen()) {
con.close()
service.postAbort(service.getString(R.string.p_serial_unsupported))
return
Expand Down

0 comments on commit 1dd06c6

Please sign in to comment.