Merge Complete M200 output with M503 (PR#2506)
This commit is contained in:
commit
47ae96ce15
2 changed files with 39 additions and 41 deletions
|
@ -3082,7 +3082,7 @@ inline void gcode_M42() {
|
|||
if (code_seen('P') && pin_status >= 0 && pin_status <= 255)
|
||||
pin_number = code_value_short();
|
||||
|
||||
for (int8_t i = 0; i < COUNT(sensitive_pins); i++) {
|
||||
for (uint8_t i = 0; i < COUNT(sensitive_pins); i++) {
|
||||
if (sensitive_pins[i] == pin_number) {
|
||||
pin_number = -1;
|
||||
break;
|
||||
|
@ -4222,7 +4222,7 @@ inline void gcode_M226() {
|
|||
|
||||
if (pin_state >= -1 && pin_state <= 1) {
|
||||
|
||||
for (int8_t i = 0; i < COUNT(sensitive_pins); i++) {
|
||||
for (uint8_t i = 0; i < COUNT(sensitive_pins); i++) {
|
||||
if (sensitive_pins[i] == pin_number) {
|
||||
pin_number = -1;
|
||||
break;
|
||||
|
|
|
@ -565,16 +565,8 @@ void Config_ResetDefault() {
|
|||
#endif
|
||||
|
||||
volumetric_enabled = false;
|
||||
filament_size[0] = DEFAULT_NOMINAL_FILAMENT_DIA;
|
||||
#if EXTRUDERS > 1
|
||||
filament_size[1] = DEFAULT_NOMINAL_FILAMENT_DIA;
|
||||
#if EXTRUDERS > 2
|
||||
filament_size[2] = DEFAULT_NOMINAL_FILAMENT_DIA;
|
||||
#if EXTRUDERS > 3
|
||||
filament_size[3] = DEFAULT_NOMINAL_FILAMENT_DIA;
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
for (int q=0; q<COUNT(filament_size); q++)
|
||||
filament_size[q] = DEFAULT_NOMINAL_FILAMENT_DIA;
|
||||
calculate_volumetric_multipliers();
|
||||
|
||||
SERIAL_ECHO_START;
|
||||
|
@ -826,16 +818,21 @@ void Config_PrintSettings(bool forReplay) {
|
|||
|
||||
#endif // FWRETRACT
|
||||
|
||||
if (volumetric_enabled) {
|
||||
/**
|
||||
* Volumetric extrusion M200
|
||||
*/
|
||||
if (!forReplay) {
|
||||
CONFIG_ECHO_START;
|
||||
SERIAL_ECHOLNPGM("Filament settings:");
|
||||
SERIAL_ECHOPGM("Filament settings:");
|
||||
if (volumetric_enabled)
|
||||
SERIAL_EOL;
|
||||
else
|
||||
SERIAL_ECHOLNPGM(" Disabled");
|
||||
}
|
||||
|
||||
CONFIG_ECHO_START;
|
||||
SERIAL_ECHOPAIR(" M200 D", filament_size[0]);
|
||||
SERIAL_EOL;
|
||||
|
||||
#if EXTRUDERS > 1
|
||||
CONFIG_ECHO_START;
|
||||
SERIAL_ECHOPAIR(" M200 T1 D", filament_size[1]);
|
||||
|
@ -852,13 +849,14 @@ void Config_PrintSettings(bool forReplay) {
|
|||
#endif
|
||||
#endif
|
||||
|
||||
} else {
|
||||
if (!forReplay) {
|
||||
if (!volumetric_enabled) {
|
||||
CONFIG_ECHO_START;
|
||||
SERIAL_ECHOLNPGM("Filament settings: Disabled");
|
||||
}
|
||||
SERIAL_ECHOLNPGM(" M200 D0");
|
||||
}
|
||||
|
||||
/**
|
||||
* Auto Bed Leveling
|
||||
*/
|
||||
#ifdef ENABLE_AUTO_BED_LEVELING
|
||||
#ifdef CUSTOM_M_CODES
|
||||
if (!forReplay) {
|
||||
|
|
Reference in a new issue