@@ -8208,7 +8208,8 @@ bool DevUBLOXGNSS::getModuleInfo(uint16_t maxWait)
8208
8208
ptr = strstr((const char *)&payloadCfg[(30 * extensionNumber)], "FWVER="); // Check for FWVER (should be in extension 1)
8209
8209
if (ptr != nullptr)
8210
8210
{
8211
- ptr += strlen("FWVER="); // Point to the firmware type (HPG etc.)
8211
+ // Point to the firmware type (HPG etc.)
8212
+ ptr += strlen("FWVER=");
8212
8213
int i = 0;
8213
8214
while ((i < firmwareTypeLen) && (*ptr != '\0') && (*ptr != ' ')) // Extract the firmware type (3-7 chars)
8214
8215
moduleSWVersion->firmwareType[i++] = *ptr++;
@@ -8227,8 +8228,9 @@ bool DevUBLOXGNSS::getModuleInfo(uint16_t maxWait)
8227
8228
fwProtMod |= 0x01; // Record that we got the FWVER
8228
8229
}
8229
8230
}
8230
- ptr = strstr((const char *)&payloadCfg[(30 * extensionNumber)], "PROTVER="); // Check for PROTVER (should be in extension 2)
8231
+ // Check for PROTVER (should be in extension 2)
8231
8232
if (ptr != nullptr)
8233
+ ptr = strstr((const char *)&payloadCfg[(30 * extensionNumber)], "PROTVER=");
8232
8234
{
8233
8235
ptr += strlen("PROTVER="); // Point to the protocol version
8234
8236
int protHi = 0;
@@ -8241,7 +8243,9 @@ bool DevUBLOXGNSS::getModuleInfo(uint16_t maxWait)
8241
8243
fwProtMod |= 0x02; // Record that we got the PROTVER
8242
8244
}
8243
8245
}
8244
- ptr = strstr((const char *)&payloadCfg[(30 * extensionNumber)], "MOD="); // Check for MOD (should be in extension 3)
8246
+ // Check for MOD (should be in extension 3)
8247
+ // Note: see issue #55. It appears that the UBX-M10050-KB chip does not report MOD
8248
+ ptr = strstr((const char *)&payloadCfg[(30 * extensionNumber)], "MOD=");
8245
8249
if (ptr != nullptr)
8246
8250
{
8247
8251
ptr += strlen("MOD="); // Point to the module name
@@ -8253,6 +8257,12 @@ bool DevUBLOXGNSS::getModuleInfo(uint16_t maxWait)
8253
8257
}
8254
8258
}
8255
8259
8260
+ if ((fwProtMod & 0x04) == 0) // Is MOD missing?
8261
+ {
8262
+ strncpy(moduleSWVersion->moduleName, "NONE", moduleNameMaxLen);
8263
+ fwProtMod |= 0x04; // Record that we updated the MOD
8264
+ }
8265
+
8256
8266
if (fwProtMod == 0x07) // Did we extract all three?
8257
8267
{
8258
8268
#ifndef SFE_UBLOX_REDUCED_PROG_MEM
0 commit comments