Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch to support extended baud rates #60

Closed
albertogonb opened this issue Jul 16, 2020 · 0 comments
Closed

Patch to support extended baud rates #60

albertogonb opened this issue Jul 16, 2020 · 0 comments

Comments

@albertogonb
Copy link

albertogonb commented Jul 16, 2020

I ask you to add the following patch to support 230400, 500000 and 1000000 Baud.
I have successfully tested these speeds on Fedora 31 and Raspbian 10.
The patch is for version 0.4.0.

--- src/tty.c.orig	2020-07-13 18:48:41.397491648 +0200
+++ src/tty.c	2020-07-16 20:06:23.600114131 +0200
@@ -306,6 +306,21 @@
     tspeed = B115200;
     break;
 #endif
+#if defined(B230400)
+  case 230400:
+    tspeed = B230400;
+    break;
+#endif
+#if defined(B500000)
+  case 500000:
+    tspeed = B500000;
+    break;
+#endif
+#if defined(B1000000)
+  case 1000000:
+    tspeed = B1000000;
+    break;
+#endif
   default:
     tspeed = DEFAULT_BSPEED;
     break;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants