Skip to content

fix type issue with laser on/off#5

Open
vmagro wants to merge 1 commit into
guffy1234:masterfrom
vmagro:master
Open

fix type issue with laser on/off#5
vmagro wants to merge 1 commit into
guffy1234:masterfrom
vmagro:master

Conversation

@vmagro

@vmagro vmagro commented Jun 20, 2021

Copy link
Copy Markdown

I'm pretty sure this used to work, but now it seems that the cutter mode is
being given as a string (gotta love JS).
I updated the switches to operate on the value .toString() so that it works
in the case of integer or string input types.

I'm pretty sure this used to work, but now it seems that the cutter mode is
being given as a string (gotta love JS).
I updated the switches to operate on the value `.toString()` so that it works
in the case of integer or string input types.
nakanotakuo pushed a commit to nakanotakuo/mpcnc_post_processor that referenced this pull request Jul 24, 2026
setSpindeSpeed() only compared the requested speed against
currentSpindleSpeed, so reversing spindle direction (clockwise <->
counterclockwise) while RPM stayed the same silently emitted no
G-code. Added currentSpindleClockwise to track direction alongside
speed, and re-trigger spindleOn() when direction changes while the
spindle is running.

Marks guffy1234#5 fixed in docs/known-issues-v4.md.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant