Enable M914/5, Show in settings if overloaded

This commit is contained in:
vintagepc 2020-02-21 17:50:38 -05:00 committed by VintagePC
parent 93580ce471
commit 6dfbdd3735
2 changed files with 12 additions and 2 deletions

View File

@ -8229,9 +8229,9 @@ Sigma_Exit:
}
break;
#endif // TMC2130_SERVICE_CODES_M910_M918
/*!
### M914 - Set TMC2130 normal mode <a href="https://reprap.org/wiki/G-code#M914:_Set_TMC2130_normal_mode">M914: Set TMC2130 normal mode</a>
Not active in default, only if `TMC2130_SERVICE_CODES_M910_M918` is defined in source code.
*/
case 914:
{
@ -8253,6 +8253,7 @@ Sigma_Exit:
}
break;
#ifdef TMC2130_SERVICE_CODES_M910_M918
/*!
### M916 - Set TMC2130 Stallguard sensitivity threshold <a href="https://reprap.org/wiki/G-code#M916:_Set_TMC2130_Stallguard_sensitivity_threshold">M916: Set TMC2130 Stallguard sensitivity threshold</a>
Not active in default, only if `TMC2130_SERVICE_CODES_M910_M918` is defined in source code.

View File

@ -4223,7 +4223,16 @@ do\
{\
if(!farm_mode)\
{\
if (SilentModeMenu == SILENT_MODE_NORMAL)\
bool bDesync = SilentModeMenu != tmc2130_mode; \
if (SilentModeMenu == SILENT_MODE_NORMAL && bDesync) \
{\
MENU_ITEM_TOGGLE_P(_T(MSG_MODE), PSTR("M915"), lcd_silent_mode_set);\
}\
else if (bDesync) \
{\
MENU_ITEM_TOGGLE_P(_T(MSG_MODE), PSTR("M914") , lcd_silent_mode_set);\
}\
else if (SilentModeMenu == SILENT_MODE_NORMAL)\
{\
MENU_ITEM_TOGGLE_P(_T(MSG_MODE), _T(MSG_NORMAL), lcd_silent_mode_set);\
}\