From 45859ffe3488d676e8aa3bf8e9607c87d967fd24 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Wed, 3 Dec 2014 07:36:53 -0800 Subject: [PATCH] SCP: Fixed SEND command to properly support a bare AFTER=n argument. --- scp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scp.c b/scp.c index c873200d..01baa1f0 100644 --- a/scp.c +++ b/scp.c @@ -3280,7 +3280,7 @@ while (*cptr) { if ((!strncmp(gbuf, "AFTER=", 6)) && (gbuf[6])) { after = (uint32)get_uint (&gbuf[6], 10, 10000000, &r); if (r != SCPE_OK) { - sim_printf ("Invalid Delay Value\n"); + sim_printf ("Invalid After Value\n"); return SCPE_ARG|SCPE_NOMESSAGE; } cptr = tptr; @@ -3305,7 +3305,7 @@ if (*cptr) { return SCPE_ARG|SCPE_NOMESSAGE; } } -if ((dsize == 0) && (delay == 0)) +if ((dsize == 0) && (delay == 0) && (after == 0)) return SCPE_2FARG; return sim_send_input (snd, dbuf, dsize, after, delay); }