Merge pull request #3064 from 3d-gussner/PFW-1222

PFW-1222: Disable M120 M121
This commit is contained in:
DRracer 2021-03-30 10:09:47 +02:00 committed by GitHub
commit a251dcc14e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 2 deletions

View File

@ -387,6 +387,12 @@ const unsigned int dropsegments=5; //everything with less than this number of st
*/
#define EXTENDED_CAPABILITIES_REPORT
/**
* Enable M120/M121 G-code commands
*
*/
//#define M120_M121_ENABLED //Be careful enabling and using these G-code commands.
//===========================================================================
//============================= Define Defines ============================
//===========================================================================

View File

@ -6972,19 +6972,21 @@ Sigma_Exit:
lcd_setstatus(strchr_pointer + 5);
break;*/
#ifdef M120_M121_ENABLED
/*!
### M120 - Enable endstops <a href="https://reprap.org/wiki/G-code#M120:_Enable_endstop_detection">M120: Enable endstop detection</a>
### M120 - Enable endstops <a href="https://reprap.org/wiki/G-code#M120:_Enable_endstop_detection">M120: Enable endstop detection</a>
*/
case 120:
enable_endstops(true) ;
break;
/*!
### M121 - Disable endstops <a href="https://reprap.org/wiki/G-code#M121:_Disable_endstop_detection">M121: Disable endstop detection</a>
### M121 - Disable endstops <a href="https://reprap.org/wiki/G-code#M121:_Disable_endstop_detection">M121: Disable endstop detection</a>
*/
case 121:
enable_endstops(false) ;
break;
#endif //M120_M121_ENABLED
/*!
### M119 - Get endstop states <a href="https://reprap.org/wiki/G-code#M119:_Get_Endstop_Status">M119: Get Endstop Status</a>