1
0
mirror of https://github.com/mik3y/usb-serial-for-android synced 2025-06-07 16:06:10 +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:
xeonfusion 2015-03-13 15:50:14 +04:00
parent 228c7936eb
commit 50dda78a63

View File

@ -456,6 +456,10 @@ public class ProlificSerialDriver implements UsbSerialDriver {
case PARITY_ODD: case PARITY_ODD:
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;