Skip to content

Commit 4011956

Browse files
committed
More coffee required...
1 parent 34880fc commit 4011956

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/u-blox_GNSS.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)