From 59a599a61fc5f7e443568d8e6fb7355747bb1df3 Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Fri, 22 Mar 2002 22:50:33 +0000 Subject: [PATCH] Fixed analogue modem locked speed settings --- ChangeLog | 2 ++ mbsetup/m_tty.c | 17 +++++++++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 77def82b..54a7a93f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4622,6 +4622,8 @@ v0.33.20 10-Feb-2002 Changed edit of message editor in user editor. Double noderecords are automatic removed with error logging. Corrected screen layout in menu 1.4.11. + When editing analogue modem lines, the locked portspeed was + in a lot of cases set to 0. mbfido: In AreaMgr and FileMgr changed aka matching for area diff --git a/mbsetup/m_tty.c b/mbsetup/m_tty.c index 1fa52c9e..398fa83a 100644 --- a/mbsetup/m_tty.c +++ b/mbsetup/m_tty.c @@ -383,7 +383,14 @@ int EditTtyRec(int Area) case 3: E_STR( 9,21,25,ttyinfo.phone, "The ^Phone number^ or ^Hostname^ or ^IP address^ of this tty line") case 4: E_STR( 10,21,20,ttyinfo.speed, "The ^Speed^ of this device") case 5: E_STR( 11,21,30,ttyinfo.flags, "The ^Fidonet Capability Flags^ for this tty line") - case 6: ttyinfo.type = edit_linetype(12,21, ttyinfo.type); break; + case 6: ttyinfo.type = edit_linetype(12,21, ttyinfo.type); + if (ttyinfo.type == POTS) { + if (!ttyinfo.portspeed) + ttyinfo.portspeed = 57600; + } else { + ttyinfo.portspeed = 0; + } + break; case 7: ttyinfo.available = edit_bool(13,21, ttyinfo.available, (char *)"Switch if this tty line is ^Available^ for use."); if (ttyinfo.available) { @@ -392,10 +399,12 @@ int EditTtyRec(int Area) ttyinfo.authlog = TRUE; ttyinfo.honor_zmh = TRUE; } - if ((ttyinfo.type == POTS) && !ttyinfo.portspeed) - ttyinfo.portspeed = 57600; - else + if (ttyinfo.type == POTS) { + if (!ttyinfo.portspeed) + ttyinfo.portspeed = 57600; + } else { ttyinfo.portspeed = 0; + } } break; case 8: E_BOOL(14,21, ttyinfo.authlog, "Is mgetty ^Auth^ logging available")