mirror of
https://github.com/mik3y/usb-serial-for-android.git
synced 2026-10-15 15:40:55 +00:00
CH34x: for baud rate 307200 use special divisor+factor with lower deviation
This commit is contained in:
+3
@@ -199,6 +199,9 @@ public class Ch34xSerialDriver implements UsbSerialDriver {
|
||||
if (baudRate == 921600) {
|
||||
divisor = 7;
|
||||
factor = 0xf300;
|
||||
} else if (baudRate == 307200) {
|
||||
divisor = 7;
|
||||
factor = 0xd900;
|
||||
} else {
|
||||
final long BAUDBASE_FACTOR = 1532620800;
|
||||
final int BAUDBASE_DIVMAX = 3;
|
||||
|
||||
Reference in New Issue
Block a user