Fix to avoid remote console looping in Multi-Command mode (Fix to issue #50).

This commit is contained in:
Mark Pizzolato 2013-05-12 12:11:18 -07:00
parent 671644ff41
commit 3d27f015c1

View file

@ -659,6 +659,7 @@ for (i=(was_stepping ? sim_rem_step_line : 0);
printf ("Remote Console Command from %s> %s\r\n", lp->ipad, sim_rem_buf[i]); printf ("Remote Console Command from %s> %s\r\n", lp->ipad, sim_rem_buf[i]);
if (sim_log) if (sim_log)
fprintf (sim_log, "Remote Console Command from %s> %s\n", lp->ipad, sim_rem_buf[i]); fprintf (sim_log, "Remote Console Command from %s> %s\n", lp->ipad, sim_rem_buf[i]);
got_command = FALSE;
if (strlen(sim_rem_buf[i]) >= sizeof(cbuf)) { if (strlen(sim_rem_buf[i]) >= sizeof(cbuf)) {
printf ("\nLine too long. Ignored. Continuing Simulator execution\n"); printf ("\nLine too long. Ignored. Continuing Simulator execution\n");
if (sim_log) if (sim_log)