remove compile warnings
This commit is contained in:
parent
e61e2955b7
commit
0b4aa58d71
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue