1
0
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:
andreas
2021-10-30 20:05:20 +02:00
parent e61e2955b7
commit 0b4aa58d71
3 changed files with 2 additions and 2 deletions

View File

@@ -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);
}
}