@@ -8205,7 +8205,8 @@ bool DevUBLOXGNSS::getModuleInfo(uint16_t maxWait)
82058205 uint8_t fwProtMod = 0; // Flags to show if we extracted the FWVER, PROTVER and MOD data
82068206 for (uint8_t extensionNumber = 0; extensionNumber < ((packetCfg.len - 40) / 30); extensionNumber++)
82078207 {
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=");
82098210 if (ptr != nullptr)
82108211 {
82118212 ptr += strlen("FWVER="); // Point to the firmware type (HPG etc.)
@@ -8227,7 +8228,8 @@ bool DevUBLOXGNSS::getModuleInfo(uint16_t maxWait)
82278228 fwProtMod |= 0x01; // Record that we got the FWVER
82288229 }
82298230 }
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=");
82318233 if (ptr != nullptr)
82328234 {
82338235 ptr += strlen("PROTVER="); // Point to the protocol version
@@ -8241,7 +8243,9 @@ bool DevUBLOXGNSS::getModuleInfo(uint16_t maxWait)
82418243 fwProtMod |= 0x02; // Record that we got the PROTVER
82428244 }
82438245 }
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=");
82458249 if (ptr != nullptr)
82468250 {
82478251 ptr += strlen("MOD="); // Point to the module name
@@ -8253,6 +8257,12 @@ bool DevUBLOXGNSS::getModuleInfo(uint16_t maxWait)
82538257 }
82548258 }
82558259
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+
82568266 if (fwProtMod == 0x07) // Did we extract all three?
82578267 {
82588268#ifndef SFE_UBLOX_REDUCED_PROG_MEM
0 commit comments