Skip to content

Commit

Permalink
Added some more boot messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
bdring committed Aug 13, 2020
1 parent 654cc16 commit 3a4de4e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
5 changes: 3 additions & 2 deletions Grbl_Esp32/src/Limits.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion Grbl_Esp32/src/Machines/6_pack_stepstick_v1.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions Grbl_Esp32/src/Probe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
9 changes: 7 additions & 2 deletions Grbl_Esp32/src/Stepper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3a4de4e

Please sign in to comment.