Use right format to generate the ModuleID thanks @makerbase-mks

This commit is contained in:
Luc 2021-01-08 12:37:45 +01:00
parent d83faee956
commit b5a8f2ab59
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@
#define _VERSION_ESP3D_H
//version and sources location
#define FW_VERSION "3.0.0.a81"
#define FW_VERSION "3.0.0.a82"
#define REPOSITORY "https://github.com/luc-github/ESP3D/tree/3.0"
#endif //_VERSION_ESP3D_H

View File

@ -132,7 +132,7 @@ bool MKSService::begin()
pinMode(ESP_FLAG_PIN, OUTPUT);
_started = true;
//max size is 21
strncpy(_moduleId,NetConfig::hostname(), 21);
sprintf (_moduleId, "HJNLM000%02X%02X%02X%02X%02X%02X", WiFi.macAddress()[0], WiFi.macAddress()[1], WiFi.macAddress()[2], WiFi.macAddress()[3], WiFi.macAddress()[4], WiFi.macAddress()[5]);
commandMode(true);
return true;
}