Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#2477 Improved M-code control for stealth mode/normal mode #2508

Closed
wants to merge 5 commits into from

Conversation

vintagepc
Copy link
Contributor

@vintagepc vintagepc commented Feb 22, 2020

This closes #2477 and allows dynamic gcode mode changes, for example to get crash detect in risky print areas, or faster MBL:

M914
G28 W
G80
M915

Features & changes:

  • Enable M914/915 for TMC2130 to allow setting stealth and normal mode via g-code.
  • Optional "P" argument to write the change to EEPROM when using M code
  • Optional 'R' argument to revert to EEPROM value.
  • Default behaviour is temporary, i.e. any change is lost either on M84 or reboot.
  • Fix possible logic hole causing FORCE_HIGH_POWER_MODE_START to not shift modes if PSU_Delta is defined and there's a stepper timeout before MBL (e.g. slow heating or high target temp)
  • Updated stealth mode menus in Tune and Settings menu to indicate if an override is in place. (Menu shows "M915" or "M914" as appropriate. Chosen because no translation is required)
  • Shared code for M914/5, partially shared with force_high_power_mode()

Picture, during MBL in stealth mode with an override:
IMG_0018

@vintagepc
Copy link
Contributor Author

Hm, something's not quite right with MBL. Investigating.

@vintagepc
Copy link
Contributor Author

I think the issue has been resolved, it now plays nicely with MBL again.

@vintagepc
Copy link
Contributor Author

Closing - deprecated by #4053

@vintagepc vintagepc closed this Feb 25, 2023
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.

[ENHANCEMENT]Stealth-mode/Normal-mode M-code
1 participant