Merge branch 'fix/line-coding-parity-byte': fix CDC parity byte

This commit is contained in:
eddy 2026-07-26 16:25:10 +02:00
commit 596a9d54d4

View file

@ -427,7 +427,7 @@ class SettingsActivity : AppCompatActivity() {
if (ctrlIntf != null && ctrlIntf.endpointCount > 0) { if (ctrlIntf != null && ctrlIntf.endpointCount > 0) {
val lineCoding = byteArrayOf( val lineCoding = byteArrayOf(
0x00.toByte(), 0xC2.toByte(), 0x01.toByte(), 0x00.toByte(), 0x00.toByte(), 0xC2.toByte(), 0x01.toByte(), 0x00.toByte(),
0x00.toByte(), 0x08.toByte(), 0x08.toByte() 0x00.toByte(), 0x00.toByte(), 0x08.toByte()
) )
connection.controlTransfer(0x21, 0x20, 0, ctrlIntf.id, lineCoding, lineCoding.size, 500) connection.controlTransfer(0x21, 0x20, 0, ctrlIntf.id, lineCoding, lineCoding.size, 500)
connection.controlTransfer(0x21, 0x22, 3, ctrlIntf.id, null, 0, 500) connection.controlTransfer(0x21, 0x22, 3, ctrlIntf.id, null, 0, 500)