aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames McKenzie <root@ka-ata-killa.panaceas.james.local>2024-08-18 00:28:35 +0100
committerJames McKenzie <root@ka-ata-killa.panaceas.james.local>2024-08-18 00:28:35 +0100
commitd1685befb8a504e6434aa772517c81548a075a76 (patch)
treef19f45332a023e3bcccbb0ffd5ce5cc69698625f
parent5d21843f9f776eb912e29de69dcf89b62c8347f0 (diff)
downloadsympathy-master.tar.gz
sympathy-master.tar.bz2
sympathy-master.zip
more baudratesHEADmaster
-rw-r--r--src/tty.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/tty.c b/src/tty.c
index 95e298a..c82c99e 100644
--- a/src/tty.c
+++ b/src/tty.c
@@ -174,6 +174,18 @@ speed_t_to_baud (speed_t s)
case B230400:
return 230400;
#endif
+#ifdef B1152000
+ case B1152000:
+ return 1152000;
+#endif
+#ifdef B1500000
+ case B1500000:
+ return 1500000;
+#endif
+#ifdef B4000000
+ case B4000000:
+ return 4000000;
+#endif
}
return -1;
@@ -260,6 +272,18 @@ baud_to_speed_t (int baud)
case 230400:
return B230400;
#endif
+#ifdef B1152000
+ case 1152000:
+ return B1152000;
+#endif
+#ifdef B1500000
+ case 1500000:
+ return B1500000;
+#endif
+#ifdef B4000000
+ case 4000000:
+ return B4000000;
+#endif
}
return -1;
}