File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -8205,11 +8205,11 @@ 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 {
8211- // Point to the firmware type (HPG etc.)
8212- ptr += strlen("FWVER=");
8212+ ptr += strlen("FWVER="); // Point to the firmware type (HPG etc.)
82138213 int i = 0;
82148214 while ((i < firmwareTypeLen) && (*ptr != '\0') && (*ptr != ' ')) // Extract the firmware type (3-7 chars)
82158215 moduleSWVersion->firmwareType[i++] = *ptr++;
@@ -8229,8 +8229,8 @@ bool DevUBLOXGNSS::getModuleInfo(uint16_t maxWait)
82298229 }
82308230 }
82318231 // Check for PROTVER (should be in extension 2)
8232- if (ptr != nullptr)
82338232 ptr = strstr((const char *)&payloadCfg[(30 * extensionNumber)], "PROTVER=");
8233+ if (ptr != nullptr)
82348234 {
82358235 ptr += strlen("PROTVER="); // Point to the protocol version
82368236 int protHi = 0;
You can’t perform that action at this time.
0 commit comments