From 3a4de4ec195269bd06925574d5501d3e2b94c80d Mon Sep 17 00:00:00 2001 From: bdring Date: Thu, 13 Aug 2020 16:04:32 -0500 Subject: [PATCH] Added some more boot messages. --- Grbl_Esp32/src/Limits.cpp | 5 +++-- Grbl_Esp32/src/Machines/6_pack_stepstick_v1.h | 2 +- Grbl_Esp32/src/Probe.cpp | 3 +++ Grbl_Esp32/src/Stepper.cpp | 9 +++++++-- 4 files changed, 14 insertions(+), 5 deletions(-) diff --git a/Grbl_Esp32/src/Limits.cpp b/Grbl_Esp32/src/Limits.cpp index 18e71d78..36430654 100644 --- a/Grbl_Esp32/src/Limits.cpp +++ b/Grbl_Esp32/src/Limits.cpp @@ -295,18 +295,19 @@ void limits_init() { } else { detachInterrupt(pin); } + /* + // Change to do this once. limits_init() happens often grbl_msg_sendf(CLIENT_SERIAL, MSG_LEVEL_INFO, "%c%s Axis limit switch on pin %s", report_get_axis_letter(axis), gang_index ? "2" : " ", pinName(pin).c_str()); + */ } } } - //grbl_msg_sendf(CLIENT_SERIAL, MSG_LEVEL_INFO, "Limit Mask %d", limit_mask); - // setup task used for debouncing limit_sw_queue = xQueueCreate(10, sizeof(int)); xTaskCreate(limitCheckTask, diff --git a/Grbl_Esp32/src/Machines/6_pack_stepstick_v1.h b/Grbl_Esp32/src/Machines/6_pack_stepstick_v1.h index 16e9cd48..12371a8f 100644 --- a/Grbl_Esp32/src/Machines/6_pack_stepstick_v1.h +++ b/Grbl_Esp32/src/Machines/6_pack_stepstick_v1.h @@ -39,7 +39,7 @@ #define USE_I2S_OUT // Define USE_I2S_OUT_STREAM if buffering is used. // (there will be a delay between the specified I/O operation and the actual I/O execution) -#define USE_I2S_OUT_STREAM +//#define USE_I2S_OUT_STREAM #undef USE_RMT_STEPS #define USE_STEPSTICK // makes sure MS1,2,3 !reset and !sleep are set diff --git a/Grbl_Esp32/src/Probe.cpp b/Grbl_Esp32/src/Probe.cpp index 5ece4a01..49be54a1 100644 --- a/Grbl_Esp32/src/Probe.cpp +++ b/Grbl_Esp32/src/Probe.cpp @@ -35,6 +35,9 @@ void probe_init() { pinMode(PROBE_PIN, INPUT_PULLUP); // Enable internal pull-up resistors. Normal high operation. # endif probe_configure_invert_mask(false); // Initialize invert mask. + + grbl_msg_sendf(CLIENT_SERIAL, MSG_LEVEL_INFO, "Probe on pin %s Inverted:%s", pinName(PROBE_PIN).c_str(), probe_invert->get() ? "Y" : "N"); + #endif } diff --git a/Grbl_Esp32/src/Stepper.cpp b/Grbl_Esp32/src/Stepper.cpp index f64caa8d..6fac92d5 100644 --- a/Grbl_Esp32/src/Stepper.cpp +++ b/Grbl_Esp32/src/Stepper.cpp @@ -424,8 +424,13 @@ void stepper_init() { // make the step pins outputs #ifdef USE_RMT_STEPS grbl_msg_sendf(CLIENT_SERIAL, MSG_LEVEL_INFO, "RMT Steps"); -#elif defined(USE_I2S_OUT_STREAM) - grbl_msg_sendf(CLIENT_SERIAL, MSG_LEVEL_INFO, "I2S Steps"); +#elif defined(USE_I2S_OUT) +# ifdef USE_I2S_OUT_STREAM + grbl_msg_sendf(CLIENT_SERIAL, MSG_LEVEL_INFO, "I2S Steps, Stream"); +# else + grbl_msg_sendf(CLIENT_SERIAL, MSG_LEVEL_INFO, "I2S Steps, Static"); +# endif + #else grbl_msg_sendf(CLIENT_SERIAL, MSG_LEVEL_INFO, "Timed Steps"); #endif