mirror of
https://github.com/mik3y/usb-serial-for-android
synced 2025-06-08 00:16:13 +00:00
Update ProlificSerialDriver.java
Missing Parity case in switch statement causes the Prolific driver code to crash when Parity is set to Even.
This commit is contained in:
parent
228c7936eb
commit
50dda78a63
@ -457,6 +457,10 @@ public class ProlificSerialDriver implements UsbSerialDriver {
|
|||||||
lineRequestData[5] = 1;
|
lineRequestData[5] = 1;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case PARITY_EVEN:
|
||||||
|
lineRequestData[5] = 2;
|
||||||
|
break;
|
||||||
|
|
||||||
case PARITY_MARK:
|
case PARITY_MARK:
|
||||||
lineRequestData[5] = 3;
|
lineRequestData[5] = 3;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user