Skip to content

Commit 5dfe93a

Browse files
committed
Pretty print the LG290P version number
1 parent 76a6d58 commit 5dfe93a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Firmware/RTK_Everywhere/GNSS_LG290P.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,6 @@ void GNSS_LG290P::begin()
101101
online.gnss = true;
102102

103103
// Check firmware version and print info
104-
printModuleInfo();
105-
106104
std::string version, buildDate, buildTime;
107105
if (_lg290p->getVersionInfo(version, buildDate, buildTime))
108106
snprintf(gnssFirmwareVersion, sizeof(gnssFirmwareVersion), "%s", version.c_str());
@@ -125,6 +123,8 @@ void GNSS_LG290P::begin()
125123
lg290pFirmwareVersion, gnssFirmwareVersion);
126124
}
127125

126+
printModuleInfo();
127+
128128
snprintf(gnssUniqueId, sizeof(gnssUniqueId), "%s", getId());
129129
}
130130

@@ -1772,7 +1772,7 @@ void GNSS_LG290P::printModuleInfo()
17721772
std::string version, buildDate, buildTime;
17731773
if (_lg290p->getVersionInfo(version, buildDate, buildTime))
17741774
{
1775-
systemPrintf("LG290P version: %s %s %s\r\n", version.c_str(), buildDate.c_str(), buildTime.c_str());
1775+
systemPrintf("LG290P version: v%02d - %s %s %s - v%d\r\n", lg290pFirmwareVersion, version.c_str(), buildDate.c_str(), buildTime.c_str());
17761776
}
17771777
else
17781778
{

0 commit comments

Comments
 (0)