Skip to content

Commit

Permalink
Merge pull request #1131 from nicolas-lang/dev/fix-probe-init-msg
Browse files Browse the repository at this point in the history
fixes "Toolsetter Pin" init-messages
  • Loading branch information
MitchBradley authored Feb 11, 2024
2 parents aa548e2 + 7345a97 commit df40c51
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions FluidNC/src/Probe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,13 @@

// Probe pin initialization routine.
void Probe::init() {
static bool show_init_msg = true; // used to show message only once.
static bool show_init_msg = true; // used to show messages only once.

if (_probePin.defined()) {
_probePin.setAttr(Pin::Attr::Input);

if (show_init_msg) {
_probePin.report("Probe Pin:");
show_init_msg = false;
}
}

Expand Down

0 comments on commit df40c51

Please sign in to comment.