mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-14 14:33:07 +01:00
remove compile warnings
This commit is contained in:
@@ -58,7 +58,6 @@ static bool AddRepeat(tNMEA0183AISMsg &NMEA0183AISMsg, uint8_t Repeat);
|
|||||||
static bool AddUserID(tNMEA0183AISMsg &NMEA0183AISMsg, uint32_t UserID);
|
static bool AddUserID(tNMEA0183AISMsg &NMEA0183AISMsg, uint32_t UserID);
|
||||||
static bool AddIMONumber(tNMEA0183AISMsg &NMEA0183AISMsg, uint32_t &IMONumber);
|
static bool AddIMONumber(tNMEA0183AISMsg &NMEA0183AISMsg, uint32_t &IMONumber);
|
||||||
static bool AddText(tNMEA0183AISMsg &NMEA0183AISMsg, char *FieldVal, uint8_t length);
|
static bool AddText(tNMEA0183AISMsg &NMEA0183AISMsg, char *FieldVal, uint8_t length);
|
||||||
static bool AddVesselType(tNMEA0183AISMsg &NMEA0183AISMsg, uint8_t VesselType);
|
|
||||||
static bool AddDimensions(tNMEA0183AISMsg &NMEA0183AISMsg, double Length, double Beam, double PosRefStbd, double PosRefBow);
|
static bool AddDimensions(tNMEA0183AISMsg &NMEA0183AISMsg, double Length, double Beam, double PosRefStbd, double PosRefBow);
|
||||||
static bool AddNavStatus(tNMEA0183AISMsg &NMEA0183AISMsg, uint8_t &NavStatus);
|
static bool AddNavStatus(tNMEA0183AISMsg &NMEA0183AISMsg, uint8_t &NavStatus);
|
||||||
static bool AddROT(tNMEA0183AISMsg &NMEA0183AISMsg, double &rot);
|
static bool AddROT(tNMEA0183AISMsg &NMEA0183AISMsg, double &rot);
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ void GwSerial::loop(bool handleRead){
|
|||||||
if (! handleRead) return;
|
if (! handleRead) return;
|
||||||
char buffer[10];
|
char buffer[10];
|
||||||
int rt=uart_read_bytes(num,(uint8_t *)(&buffer),10,0);
|
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);
|
readBuffer->addData((uint8_t *)(&buffer),rt,true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -110,5 +110,6 @@ bool GwWebServer::registerMainHandler(const char *url,RequestCreator creator){
|
|||||||
}
|
}
|
||||||
handleAsyncWebRequest(request,msg);
|
handleAsyncWebRequest(request,msg);
|
||||||
});
|
});
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user