Skip to content

Commit 0c42ce6

Browse files
committed
fix a bug
1 parent 63d00b0 commit 0c42ce6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/arduino/UARTClass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ UARTClass::read(void)
107107
while(this->_buff->available()){
108108
return this->_buff->read_char();
109109
}
110-
return 0;
110+
return -1;
111111
}
112112

113113
void

0 commit comments

Comments
 (0)