From 9937e6315b42aaec77f4c475d28492cd3ff100dd Mon Sep 17 00:00:00 2001 From: AndrolGenhald Date: Thu, 8 Mar 2018 18:37:17 -0600 Subject: [PATCH] Fix off by one error in comment Must have room to append null byte to input --- RFM69_OTA.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RFM69_OTA.cpp b/RFM69_OTA.cpp index ef9d2c3..d4d3893 100644 --- a/RFM69_OTA.cpp +++ b/RFM69_OTA.cpp @@ -230,7 +230,7 @@ uint8_t HandleWirelessHEXData(RFM69 radio, uint8_t remoteID, SPIFlash flash, uin //=================================================================================================================== // readSerialLine() - reads a line feed (\n) terminated line from the serial stream -// returns # of bytes read, up to 255 +// returns # of bytes read, up to 254 // timeout in ms, will timeout and return after so long // this is called at the OTA programmer side //=================================================================================================================== @@ -522,4 +522,4 @@ void resetUsingWatchdog(uint8_t DEBUG) if (DEBUG) Serial.print(F("REBOOTING")); wdt_enable(WDTO_15MS); while(1) if (DEBUG) Serial.print(F(".")); -} \ No newline at end of file +}