Skip to content

Commit 51e467f

Browse files
committed
Fix #118
1 parent c7815c0 commit 51e467f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=SerialTransfer
2-
version=3.1.4
2+
version=3.1.5
33
author=PowerBroker2 <gitstuff2@gmail.com>
44
maintainer=PowerBroker2 <gitstuff2@gmail.com>
55
sentence=Arduino library to transfer packetized data fast/reliably via UART/Serial

src/I2CTransfer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ void I2CTransfer::processData()
102102

103103
if (classToUse->status != CONTINUE)
104104
{
105-
if (classToUse->status < 0)
105+
if (classToUse->status <= 0)
106106
classToUse->reset();
107107

108108
break;

src/SerialTransfer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ uint8_t SerialTransfer::available()
102102

103103
if (status != CONTINUE)
104104
{
105-
if (status < 0)
105+
if (status <= 0)
106106
reset();
107107

108108
break;
@@ -114,7 +114,7 @@ uint8_t SerialTransfer::available()
114114
bytesRead = packet.parse(recChar, valid);
115115
status = packet.status;
116116

117-
if (status < 0)
117+
if (status <= 0)
118118
reset();
119119
}
120120

0 commit comments

Comments
 (0)