Skip to content

Commit 4105623

Browse files
committed
Initalized RX packet variables to zero
1 parent e8143cf commit 4105623

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

Diff for: avr/libraries/IntegerEasyTransfer/README.txt

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
* messages and software reset.
5050
* 1.1.1
5151
* Added overloaded write method to TwoWayIntegerEasyTransfer.
52+
* Initalized RX packet variables to zero.
5253
*
5354
*
5455
* Limits of the Library

Diff for: avr/libraries/IntegerEasyTransfer/src/IntegerEasyTransfer.cpp

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* IntegerEasyTransfer 1.0.0 library modified by Julian Sanin, sourced from:
2+
* IntegerEasyTransfer 1.1.1 library modified by Julian Sanin, sourced from:
33
*
44
* EasyTransfer Arduino Library v2.1
55
* details and example sketch:
@@ -44,6 +44,12 @@
4444
* The library supports a maximum of 20 uint8_t or 10 int16_t values.
4545
* Mixed uint8_t and int16_t are allowed but care should be taken that the
4646
* values do not overflow the data buffer.
47+
* 1.1.0
48+
* Added new classes to support two way communications and extended
49+
* messages and software reset.
50+
* 1.1.1
51+
* Added overloaded write method to TwoWayIntegerEasyTransfer.
52+
* Initalized RX packet variables to zero.
4753
*
4854
*
4955
* Limits of the Library
@@ -73,6 +79,8 @@
7379
#include "IntegerEasyTransfer.h"
7480

7581
void IntegerEasyTransfer::begin(Stream *theStream) {
82+
_rx_len = 0;
83+
_rx_array_inx = 0;
7684
_stream = theStream;
7785

7886
_resetData();

Diff for: avr/libraries/IntegerEasyTransfer/src/IntegerEasyTransfer.h

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* IntegerEasyTransfer 1.0.0 library modified by Julian Sanin, sourced from:
2+
* IntegerEasyTransfer 1.1.1 library modified by Julian Sanin, sourced from:
33
*
44
* EasyTransfer Arduino Library v2.1
55
* details and example sketch:
@@ -44,6 +44,12 @@
4444
* The library supports a maximum of 20 uint8_t or 10 int16_t values.
4545
* Mixed uint8_t and int16_t are allowed but care should be taken that the
4646
* values do not overflow the data buffer.
47+
* 1.1.0
48+
* Added new classes to support two way communications and extended
49+
* messages and software reset.
50+
* 1.1.1
51+
* Added overloaded write method to TwoWayIntegerEasyTransfer.
52+
* Initalized RX packet variables to zero.
4753
*
4854
*
4955
* Limits of the Library

0 commit comments

Comments
 (0)