@@ -2023,10 +2023,7 @@ void createSettingsString(char *newSettings)
2023
2023
stringRecord (newSettings, " sdMounted" , online.microSD );
2024
2024
2025
2025
// Add Device ID used for corrections
2026
- char hardwareID[15 ];
2027
- snprintf (hardwareID, sizeof (hardwareID), " %02X%02X%02X%02X%02X%02X%02X" , btMACAddress[0 ], btMACAddress[1 ],
2028
- btMACAddress[2 ], btMACAddress[3 ], btMACAddress[4 ], btMACAddress[5 ], productVariant);
2029
- stringRecord (newSettings, " hardwareID" , hardwareID);
2026
+ stringRecord (newSettings, " hardwareID" , printDeviceId ());
2030
2027
2031
2028
// Add Days Remaining for corrections
2032
2029
char apDaysRemaining[20 ];
@@ -2838,11 +2835,7 @@ SettingValueResponse getSettingValue(bool inCommands, const char *settingName, c
2838
2835
// Report deviceID over CLI - Useful for label generation
2839
2836
if (strcmp (settingName, " deviceId" ) == 0 )
2840
2837
{
2841
- char hardwareID[15 ];
2842
- snprintf (hardwareID, sizeof (hardwareID), " %02X%02X%02X%02X%02X%02X%02X" , btMACAddress[0 ], btMACAddress[1 ],
2843
- btMACAddress[2 ], btMACAddress[3 ], btMACAddress[4 ], btMACAddress[5 ], productVariant);
2844
-
2845
- writeToString (settingValueStr, hardwareID);
2838
+ writeToString (settingValueStr, printDeviceId ());
2846
2839
knownSetting = true ;
2847
2840
settingIsString = true ;
2848
2841
}
0 commit comments