Skip to content

Commit 6c24829

Browse files
committed
Merge branch 'release_candidate' into Add_AP+STN_for_firmwware_update_on_AP
2 parents b8e4b38 + 8959cb5 commit 6c24829

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

Firmware/RTK_Everywhere/MQTT_Client.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ void mqttClientReceiveMessage(int messageSize)
347347
if (((settings.debugMqttClientData == true) || (settings.debugCorrections == true)) && !inMainMenu)
348348
systemPrintf("Pushing %d bytes from %s topic to PPL for UM980\r\n", mqttCount, topic);
349349

350-
if (online.ppl == false)
350+
if (online.ppl == false && settings.debugMqttClientData == true)
351351
systemPrintln("Warning: PPL is offline");
352352

353353
sendSpartnToPpl(mqttData, mqttCount);

Firmware/RTK_Everywhere/menuCommands.ino

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1933,9 +1933,21 @@ bool getSettingValue(const char *settingName, char *settingValueStr)
19331933

19341934
if (knownSetting == false)
19351935
{
1936+
//Report deviceID over CLI - Useful for label generation
1937+
if (strcmp(settingName, "deviceId") == 0)
1938+
{
1939+
char hardwareID[15];
1940+
snprintf(hardwareID, sizeof(hardwareID), "%02X%02X%02X%02X%02X%02X%02X", btMACAddress[0], btMACAddress[1],
1941+
btMACAddress[2], btMACAddress[3], btMACAddress[4], btMACAddress[5],
1942+
productVariant);
1943+
1944+
writeToString(settingValueStr, hardwareID);
1945+
knownSetting = true;
1946+
}
1947+
19361948
// Unused variables - read to avoid errors
19371949
// TODO: check this! Is this really what we want?
1938-
if (strcmp(settingName, "fixedLatText") == 0)
1950+
else if (strcmp(settingName, "fixedLatText") == 0)
19391951
{
19401952
knownSetting = true;
19411953
}
@@ -2321,6 +2333,8 @@ void printAvailableSettings()
23212333
}
23222334
}
23232335

2336+
systemPrint("deviceId,char[18],");
2337+
23242338
// TODO: check this! Is this really what we want?
23252339
systemPrint("fixedLatText,char[],");
23262340
systemPrint("fixedLongText,char[],");

0 commit comments

Comments
 (0)