TMXR: Don't allow 0 speed specifier for speed programmable mux devices
As reported in #587
This commit is contained in:
parent
1a7412a276
commit
b007669ad5
1 changed files with 3 additions and 1 deletions
|
@ -2658,7 +2658,9 @@ while (*tptr) {
|
|||
if ((NULL == cptr) || ('\0' == *cptr) ||
|
||||
(_tmln_speed_delta (cptr) < 0))
|
||||
return sim_messagef (SCPE_ARG, "Invalid Speed Specifier: %s\n", (cptr ? cptr : ""));
|
||||
if (mp->port_speed_control && (_tmln_speed_delta (cptr) > 0) && (!(sim_switches & SIM_SW_REST)))
|
||||
if (mp->port_speed_control &&
|
||||
((_tmln_speed_delta (cptr) > 0) || (*cptr != '*')) &&
|
||||
(!(sim_switches & SIM_SW_REST)))
|
||||
return sim_messagef (SCPE_ARG, "%s simulator programmatically sets %sport speed\n", sim_name, dev_name);
|
||||
strlcpy (speed, cptr, sizeof(speed));
|
||||
continue;
|
||||
|
|
Loading…
Add table
Reference in a new issue