From 2357057be1c8f88d1345a96e82fc96edb9e9a622 Mon Sep 17 00:00:00 2001 From: ian Date: Mon, 14 Jul 2008 22:17:27 +0000 Subject: [PATCH] revert suppression of general ping since it's pointless unless we supress the timestamps too --- hostside/realtime.c | 8 ++------ hostside/realtime.h | 1 - hostside/startup.c | 2 +- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/hostside/realtime.c b/hostside/realtime.c index 6a69302..9a73731 100644 --- a/hostside/realtime.c +++ b/hostside/realtime.c @@ -284,10 +284,6 @@ void serial_indata_process(int buf_used) { /*---------- serial port output (not via liboop) ----------*/ void serial_transmit(const PicInsn *pi) { - serial_transmit_maybenosim(pi, 0); -} - -void serial_transmit_maybenosim(const PicInsn *pi, int nosim) { const PicInsnInfo *pii; int obj, v, suppress=0; @@ -316,11 +312,11 @@ void serial_transmit_maybenosim(const PicInsn *pi, int nosim) { else if (pii->noiselevel > picio_send_noise) suppress= 1; else - oupicio("out",pii,obj,v, nosim ? ouprintf_only : ouprintf); + oupicio("out",pii,obj,v,ouprintf); } if (!suppress && picio_send_noise >= 2) - (nosim ? ouhex_nosim : ouhex)("picioh out", pi->d, pi->l); + ouhex("picioh out", pi->d, pi->l); /* note that the serial port is still in nonblocking mode. if * we ever buffer up far enough that the kernel wants to make us diff --git a/hostside/realtime.h b/hostside/realtime.h index ca8d239..6df39a7 100644 --- a/hostside/realtime.h +++ b/hostside/realtime.h @@ -150,7 +150,6 @@ void ouhex(const char *word, const Byte *command, int length); void ouhex_nosim(const char *word, const Byte *command, int length); void serial_transmit(const PicInsn *pi); -void serial_transmit_maybenosim(const PicInsn *pi, int nosim); void command_doline(ParseState *ps, CommandInput *cmdi_arg); const CmdInfo *current_cmd; diff --git a/hostside/startup.c b/hostside/startup.c index 250697f..1e42ae8 100644 --- a/hostside/startup.c +++ b/hostside/startup.c @@ -25,7 +25,7 @@ static void timedout_ping(TimeoutEvent *toev) { static void timefor_ping(TimeoutEvent *toev) { enco_pic_ping(&piob, pong_seq ^ PING_PONG_PATTERN); - serial_transmit_maybenosim(&piob, toev && toev->pclass == toev_fast_pclass); + serial_transmit(&piob); ping_toev.callback= timedout_ping; ping_toev.pclass= "startup"; toev_start(&ping_toev); -- 2.30.2