From ffb6d4b2696eea528be930f18ba79a134cab6042 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Tue, 19 Jun 2018 16:02:26 -0700 Subject: [PATCH] TMXR: Fix ATTACH SPEED= to apply speed (or factor) if it is specified --- sim_tmxr.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sim_tmxr.c b/sim_tmxr.c index 2b6c8c0f..4500c725 100644 --- a/sim_tmxr.c +++ b/sim_tmxr.c @@ -2911,6 +2911,15 @@ while (*tptr) { return sim_messagef (SCPE_ARG, "Can't open %s socket on %s%s%s\n", datagram ? "Datagram" : "Stream", datagram ? listen : "", datagram ? "<->" : "", hostport); } } + if (speed[0] && + (destination[0] == '\0') && + (listen[0] == '\0') && + (!loopback)) { + for (i = 0; i < mp->lines; i++) { + lp = mp->ldsc + i; + tmxr_set_line_speed (lp, speed); + } + } } else { /* line specific attach */ lp = &mp->ldsc[line];