1
0
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:
Mitch Bradley
2020-03-08 12:53:18 -10:00
parent 9f010eb22d
commit c832842dde
2 changed files with 9 additions and 1 deletions

View File

@@ -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

View File

@@ -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)