From 5511fb3d6098f909d32c3d0bb5a7c6c63ce25a21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net> Date: Mon, 6 Mar 2023 13:04:35 -0500 Subject: [PATCH] A couple fixes for NORTS mode 1) In the BBS list, show flow control, not TCP port 2) Properly ignore DCD --- src/syncterm/bbslist.c | 2 +- src/syncterm/modem.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/syncterm/bbslist.c b/src/syncterm/bbslist.c index be4ba11064..3ef5e46d6d 100644 --- a/src/syncterm/bbslist.c +++ b/src/syncterm/bbslist.c @@ -1060,7 +1060,7 @@ edit_list(struct bbslist **list, struct bbslist *item, char *listpath, int isdef sprintf(opt[i++], "Address %s", item->addr); } sprintf(opt[i++], "Connection Type %s", conn_types[item->conn_type]); - if ((item->conn_type == CONN_TYPE_MODEM) || (item->conn_type == CONN_TYPE_SERIAL)) + if ((item->conn_type == CONN_TYPE_MODEM) || (item->conn_type == CONN_TYPE_SERIAL) || (item->conn_type == CONN_TYPE_SERIAL_NORTS)) fc_str(opt[i++], item->flow_control); else if (item->conn_type != CONN_TYPE_SHELL) sprintf(opt[i++], "TCP Port %hu", item->port); diff --git a/src/syncterm/modem.c b/src/syncterm/modem.c index 2bd78207a1..607a31c4fa 100644 --- a/src/syncterm/modem.c +++ b/src/syncterm/modem.c @@ -322,7 +322,7 @@ modem_connect(struct bbslist *bbs) } conn_api.wr_buf_size = BUFFER_SIZE; - if (bbs->conn_type == CONN_TYPE_SERIAL) { + if ((bbs->conn_type == CONN_TYPE_SERIAL) || (bbs->conn_type == CONN_TYPE_SERIAL_NORTS)) { _beginthread(modem_output_thread, 0, (void *)-1); _beginthread(modem_input_thread, 0, (void *)-1); } -- GitLab