mirror of
https://github.com/sipeed/Maixduino.git
synced 2026-03-03 09:04:00 +01:00
Merge pull request #66 from epozzobon/master
Fixed receiving the NUL '\x00' character on Serial
This commit is contained in:
@@ -187,8 +187,8 @@ uarths_rec_callback(void *ctx)
|
||||
int data;
|
||||
auto &driver = *reinterpret_cast<UARTHSClass *>(ctx);
|
||||
data = uarths_getc();
|
||||
if(data != 0){
|
||||
if(data != EOF){
|
||||
driver._buff->store_char((char)data);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user