@@ -2023,7 +2023,7 @@ void createSettingsString(char *newSettings)
2023
2023
stringRecord (newSettings, " sdMounted" , online.microSD );
2024
2024
2025
2025
// Add Device ID used for corrections
2026
- stringRecord (newSettings, " hardwareID" , printDeviceId ());
2026
+ stringRecord (newSettings, " hardwareID" , ( char *) printDeviceId ());
2027
2027
2028
2028
// Add Days Remaining for corrections
2029
2029
char apDaysRemaining[20 ];
@@ -2835,7 +2835,7 @@ SettingValueResponse getSettingValue(bool inCommands, const char *settingName, c
2835
2835
// Report deviceID over CLI - Useful for label generation
2836
2836
if (strcmp (settingName, " deviceId" ) == 0 )
2837
2837
{
2838
- writeToString (settingValueStr, printDeviceId ());
2838
+ writeToString (settingValueStr, ( char *) printDeviceId ());
2839
2839
knownSetting = true ;
2840
2840
settingIsString = true ;
2841
2841
}
@@ -3524,21 +3524,16 @@ void printAvailableSettings()
3524
3524
else if (commandIndex[i] == COMMAND_PROFILE_NUMBER)
3525
3525
{
3526
3526
char settingValue[100 ];
3527
-
3528
3527
snprintf (settingValue, sizeof (settingValue), " %d" , profileNumber);
3529
3528
commandSendExecuteListResponse (" profileNumber" , " uint8_t" , settingValue);
3530
3529
}
3531
3530
3532
3531
// Display the device ID - used in PointPerfect
3533
3532
else if (commandIndex[i] == COMMAND_DEVICE_ID)
3534
3533
{
3535
- char hardwareID[15 ];
3536
3534
char settingType[100 ];
3537
-
3538
- snprintf (hardwareID, sizeof (hardwareID), " %02X%02X%02X%02X%02X%02X%02X" , btMACAddress[0 ], btMACAddress[1 ],
3539
- btMACAddress[2 ], btMACAddress[3 ], btMACAddress[4 ], btMACAddress[5 ], productVariant);
3540
- snprintf (settingType, sizeof (settingType), " char[%d]" , sizeof (hardwareID));
3541
- commandSendExecuteListResponse (" deviceId" , settingType, hardwareID);
3535
+ snprintf (settingType, sizeof (settingType), " char[%d]" , strlen (printDeviceId ()));
3536
+ commandSendExecuteListResponse (" deviceId" , settingType, printDeviceId ());
3542
3537
}
3543
3538
}
3544
3539
systemPrintln ();
0 commit comments