M701 Alias T for E parameter

This commit is contained in:
Alex Voinea 2022-07-04 15:01:41 +02:00
parent 7f751ae6ac
commit 3ff2b04801
1 changed files with 3 additions and 2 deletions

View File

@ -8856,14 +8856,15 @@ Sigma_Exit:
### M701 - Load filament <a href="https://reprap.org/wiki/G-code#M701:_Load_filament">M701: Load filament</a> ### M701 - Load filament <a href="https://reprap.org/wiki/G-code#M701:_Load_filament">M701: Load filament</a>
#### Usage #### Usage
M701 [ E ] M701 [ E | T ]
#### Parameters #### Parameters
- `E` - ID of filament to load, ranges from 0 to 4 - `E` - ID of filament to load, ranges from 0 to 4
- `T` - Alias of `E`. Used for compatibility with Marlin
*/ */
case 701: case 701:
{ {
if (mmu_enabled && code_seen('E')) if (mmu_enabled && (code_seen('E') || code_seen('T')))
tmp_extruder = code_value_uint8(); tmp_extruder = code_value_uint8();
gcode_M701(); gcode_M701();
} }