Skip to content

Commit

Permalink
[Issue 63] Increase the size of the receive buffer from 64 to 81 whic…
Browse files Browse the repository at this point in the history
…h will allow a complete response to be received
  • Loading branch information
peterj43 committed May 7, 2020
1 parent 5223eec commit 8543d95
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/SDI12.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,11 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
typedef const __FlashStringHelper *FlashString;

#define NO_IGNORE_CHAR '\x01' // a char not found in a valid ASCII numeric field
#define SDI12_BUFFER_SIZE 64 // max Rx buffer size

#define SDI12_BUFFER_SIZE 81 // <address> is a single character
// +<values> has a maximum value of 75 characters.
// +<CRC> is 3 characters
// +<CR> is a single character
// +<LF> is a single character
class SDI12 : public Stream
{
protected:
Expand Down

0 comments on commit 8543d95

Please sign in to comment.