From: short <> Date: Wed, 27 Feb 2002 22:48:19 +0000 (+0000) Subject: +usleep for better reliability w/o DEBUG on uClinux X-Git-Tag: uc_works1~26 X-Git-Url: https://git.jankratochvil.net/?p=gnokii.git;a=commitdiff_plain;h=af46b998d06d0fb5c322ff519ea04fc28eaa47c9 +usleep for better reliability w/o DEBUG on uClinux +debug dumps of incoming bytes --- 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"))