Fixed analogue modem locked speed settings

This commit is contained in:
Michiel Broek 2002-03-22 22:50:33 +00:00
parent 66e6b3241e
commit 59a599a61f
2 changed files with 15 additions and 4 deletions

View File

@ -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

View File

@ -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")