@@ -8205,7 +8205,8 @@ bool DevUBLOXGNSS::getModuleInfo(uint16_t maxWait)
8205
8205
uint8_t fwProtMod = 0; // Flags to show if we extracted the FWVER, PROTVER and MOD data
8206
8206
for (uint8_t extensionNumber = 0; extensionNumber < ((packetCfg.len - 40) / 30); extensionNumber++)
8207
8207
{
8208
- ptr = strstr((const char *)&payloadCfg[(30 * extensionNumber)], "FWVER="); // Check for FWVER (should be in extension 1)
8208
+ // Check for FWVER (should be in extension 1)
8209
+ ptr = strstr((const char *)&payloadCfg[(30 * extensionNumber)], "FWVER=");
8209
8210
if (ptr != nullptr)
8210
8211
{
8211
8212
ptr += strlen("FWVER="); // Point to the firmware type (HPG etc.)
@@ -8227,7 +8228,8 @@ 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)
8232
+ ptr = strstr((const char *)&payloadCfg[(30 * extensionNumber)], "PROTVER=");
8231
8233
if (ptr != nullptr)
8232
8234
{
8233
8235
ptr += strlen("PROTVER="); // Point to the protocol version
@@ -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