mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-13 05:53:06 +01:00
remove compile warnings
This commit is contained in:
@@ -84,7 +84,7 @@ void GwSerial::loop(bool handleRead){
|
||||
if (! handleRead) return;
|
||||
char buffer[10];
|
||||
int rt=uart_read_bytes(num,(uint8_t *)(&buffer),10,0);
|
||||
if (allowRead & rt > 0){
|
||||
if (allowRead && rt > 0){
|
||||
readBuffer->addData((uint8_t *)(&buffer),rt,true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user