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:
parent
ea0718218c
commit
68b15ce7f1
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue