mirror of
https://github.com/bdring/Grbl_Esp32.git
synced 2025-08-09 16:17:06 +02:00
machine name reporting improvements
This commit is contained in:
@@ -48,7 +48,12 @@ void setup() {
|
||||
grbl_msg_sendf(CLIENT_SERIAL, MSG_LEVEL_INFO, "Compiled with ESP32 SDK:%s", ESP.getSdkVersion()); // print the SDK version
|
||||
|
||||
#ifdef MACHINE_NAME // show the map name at startup
|
||||
grbl_msg_sendf(CLIENT_SERIAL, MSG_LEVEL_INFO, "Using cpu_map:%s", MACHINE_NAME);
|
||||
#ifdef MACHINE_EXTRA
|
||||
#define MACHINE_STRING MACHINE_NAME MACHINE_EXTRA
|
||||
#else
|
||||
#define MACHINE_STRING MACHINE_NAME
|
||||
#endif
|
||||
grbl_msg_sendf(CLIENT_SERIAL, MSG_LEVEL_INFO, "Using machine:%s", MACHINE_STRING);
|
||||
#endif
|
||||
|
||||
settings_init(); // Load Grbl settings from EEPROM
|
||||
|
@@ -8,6 +8,9 @@
|
||||
// This uses a Brushless DC Hobby motor as a spindle motor. See:
|
||||
// https://github.com/bdring/Grbl_Esp32/wiki/BESC-Spindle-Feature
|
||||
|
||||
// MACHINE_EXTRA is appended to MACHINE_NAME for startup message display
|
||||
#define MACHINE_EXTRA "_ESC_SPINDLE"
|
||||
|
||||
#define SHOW_EXTENDED_SETTINGS
|
||||
|
||||
#define SPINDLE_PWM_BIT_PRECISION 16 // 16 bit recommended for ESC (don't change)
|
||||
|
Reference in New Issue
Block a user