Fix CDC line coding parity byte

Change parity from 0x08 (SPACE) to 0x00 (NONE) to match 115200 8N1
specification. ESP32-S3 ignores this setting but the value was
technically incorrect.

Reviewed in codereview.md (recommendation #4).
This commit is contained in:
eddy 2026-07-26 16:23:55 +02:00
commit 68b15ce7f1

View file

@ -427,7 +427,7 @@ class SettingsActivity : AppCompatActivity() {
if (ctrlIntf != null && ctrlIntf.endpointCount > 0) {
val lineCoding = byteArrayOf(
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, 0x22, 3, ctrlIntf.id, null, 0, 500)