mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-09-14 14:13:12 +08:00
Use right format to generate the ModuleID thanks @makerbase-mks
This commit is contained in:
parent
d83faee956
commit
b5a8f2ab59
@ -22,7 +22,7 @@
|
|||||||
#define _VERSION_ESP3D_H
|
#define _VERSION_ESP3D_H
|
||||||
|
|
||||||
//version and sources location
|
//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"
|
#define REPOSITORY "https://github.com/luc-github/ESP3D/tree/3.0"
|
||||||
|
|
||||||
#endif //_VERSION_ESP3D_H
|
#endif //_VERSION_ESP3D_H
|
||||||
|
@ -132,7 +132,7 @@ bool MKSService::begin()
|
|||||||
pinMode(ESP_FLAG_PIN, OUTPUT);
|
pinMode(ESP_FLAG_PIN, OUTPUT);
|
||||||
_started = true;
|
_started = true;
|
||||||
//max size is 21
|
//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);
|
commandMode(true);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user