From af46b998d06d0fb5c322ff519ea04fc28eaa47c9 Mon Sep 17 00:00:00 2001 From: short <> Date: Wed, 27 Feb 2002 22:48:19 +0000 Subject: [PATCH] +usleep for better reliability w/o DEBUG on uClinux +debug dumps of incoming bytes --- common/protocol/fbus.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/common/protocol/fbus.c b/common/protocol/fbus.c index 2cc8aae..04984ca 100644 --- a/common/protocol/fbus.c +++ b/common/protocol/fbus.c @@ -161,6 +161,8 @@ int FBUS_SendFrame(u16 message_length, u8 message_type, u8 *buffer) { NULL_TX_DisplayMessage(current, out_buffer); #endif /* DEBUG */ +usleep(200000); + /* Send it out... */ if (!NULL_WritePhone(current,out_buffer)) return (false); @@ -256,6 +258,14 @@ void FBUS_RX_StateMachine(unsigned char rx_byte) { // AT_RX_StateMachine(rx_byte); // } else { +#ifdef XDEBUG_LaceDisabled + if (isprint(rx_byte)) + fprintf(stdout, "[%02x%c]", rx_byte, rx_byte); + else + fprintf(stdout, "[%02x ]", rx_byte); + fflush(stdout); +#endif + #ifdef DEBUG /* For model sniff only display received bytes */ if (strcmp(GSM_Info->FBUSModels, "sniff")) -- 1.8.3.1