From 40d4b300947c6472db00b1f613e33332f8b6b935 Mon Sep 17 00:00:00 2001 From: LowPowerLab Date: Sat, 4 May 2013 23:52:11 -0300 Subject: [PATCH] Update WirelessHEX.h --- WirelessHEX.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/WirelessHEX.h b/WirelessHEX.h index e80bf1b..c94e62b 100644 --- a/WirelessHEX.h +++ b/WirelessHEX.h @@ -20,7 +20,7 @@ #endif #ifndef ACK_TIMEOUT - #define ACK_TIMEOUT 50 + #define ACK_TIMEOUT 20 #endif #include @@ -39,9 +39,9 @@ boolean waitForAck(RFM12B radio, uint16_t ACKTIMEOUT=ACK_TIMEOUT); byte validateHEXData(void* data, byte length); byte prepareSendBuffer(char* hexdata, byte*buf, byte length, uint16_t seq); -boolean sendHEXPacket(RFM12B radio, byte remoteID, byte* sendBuf, byte hexDataLen, byte seq, uint16_t ACKTIMEOUT=ACK_TIMEOUT, uint16_t TIMEOUT=DEFAULT_TIMEOUT, boolean DEBUG=false); +boolean sendHEXPacket(RFM12B radio, byte remoteID, byte* sendBuf, byte hexDataLen, uint16_t seq, uint16_t TIMEOUT=DEFAULT_TIMEOUT, uint16_t ACKTIMEOUT=ACK_TIMEOUT, boolean DEBUG=false); byte BYTEfromHEX(char MSB, char LSB); -byte readSerialLine(void* input); +byte readSerialLine(char* input, char endOfLineChar=10, byte maxLength=64, uint16_t timeout=1000); void PrintHex83(byte* data, byte length); #endif