split up psts

This commit is contained in:
2021-06-23 15:18:31 +02:00
parent d88b920dea
commit cea1494649
7 changed files with 426 additions and 333 deletions

View File

@ -49,10 +49,12 @@ ReturnValue_t GPSHandler::buildCommandFromCommand(
ReturnValue_t GPSHandler::scanForReply(const uint8_t *start, size_t len,
DeviceCommandId_t *foundId, size_t *foundLen) {
// Pass data to GPS library
int result = lwgps_process(&gpsData, start, len);
if(result != 0) {
sif::warning << "GPSHandler::scanForReply: Issue processing GPS data with lwgps"
<< std::endl;
if(len > 0) {
int result = lwgps_process(&gpsData, start, len);
if(result != 0) {
sif::warning << "GPSHandler::scanForReply: Issue processing GPS data with lwgps"
<< std::endl;
}
}
return HasReturnvaluesIF::RETURN_OK;