optimisation: simplify T-code response for single material
Extruder is always 0 Change in memory: Flash: -12 bytes SRAM: 0 bytes
This commit is contained in:
parent
420f745bed
commit
2120d17912
|
|
@ -79,8 +79,8 @@ void TCodes(char *const strchr_pointer, uint8_t codeValue) {
|
|||
}
|
||||
}
|
||||
} else {
|
||||
SERIAL_ECHO_START;
|
||||
if (selectedSlot.slot >= EXTRUDERS) {
|
||||
SERIAL_ECHO_START;
|
||||
SERIAL_ECHO('T');
|
||||
SERIAL_ECHOLN(selectedSlot.slot + '0');
|
||||
SERIAL_ECHOLNRPGM(_n("Invalid extruder")); ////MSG_INVALID_EXTRUDER
|
||||
|
|
@ -91,9 +91,7 @@ void TCodes(char *const strchr_pointer, uint8_t codeValue) {
|
|||
// feedrate = next_feedrate;
|
||||
// }
|
||||
// }
|
||||
SERIAL_ECHO_START;
|
||||
SERIAL_ECHORPGM(_n("Active Extruder: ")); ////MSG_ACTIVE_EXTRUDER
|
||||
SERIAL_ECHOLN(active_extruder + '0'); // this is not changed in our FW at all, can be optimized away
|
||||
SERIAL_ECHORPGM(_n("Active Extruder: 0")); ////MSG_ACTIVE_EXTRUDER
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue