Use PGM serial strings

This commit is contained in:
Scott Lahteine
2020-10-19 04:24:57 -05:00
parent ea80b2c8fc
commit 21ce39aa9b
6 changed files with 22 additions and 36 deletions

View File

@ -40,8 +40,9 @@ bool FilamentMonitorBase::enabled = true,
#endif
#if ENABLED(TOOLCHANGE_MIGRATION_FEATURE)
//#define DEBUG_TOOLCHANGE_MIGRATION_FEATURE
#include "../module/tool_change.h"
#define DEBUG_OUT ENABLED(DEBUG_TOOLCHANGE_MIGRATION_FEATURE)
#include "../core/debug_out.h"
#endif
#if HAS_FILAMENT_RUNOUT_DISTANCE
@ -74,15 +75,11 @@ void event_filament_runout() {
#if ENABLED(TOOLCHANGE_MIGRATION_FEATURE)
if (migration.in_progress) {
#if ENABLED(DEBUG_TOOLCHANGE_MIGRATION_FEATURE)
SERIAL_ECHOLN("Migration Already In Progress");
#endif
DEBUG_ECHOLNPGM("Migration Already In Progress");
return; // Action already in progress. Purge triggered repeated runout.
}
if (migration.automode) {
#if ENABLED(DEBUG_TOOLCHANGE_MIGRATION_FEATURE)
SERIAL_ECHOLN("Migration Starting");
#endif
DEBUG_ECHOLNPGM("Migration Starting");
if (extruder_migration()) return;
}
#endif
@ -109,9 +106,7 @@ void event_filament_runout() {
if (run_runout_script
&& ( strstr(FILAMENT_RUNOUT_SCRIPT, "M600")
|| strstr(FILAMENT_RUNOUT_SCRIPT, "M125")
#if ENABLED(ADVANCED_PAUSE_FEATURE)
|| strstr(FILAMENT_RUNOUT_SCRIPT, "M25")
#endif
|| TERN0(ADVANCED_PAUSE_FEATURE, strstr(FILAMENT_RUNOUT_SCRIPT, "M25"))
)
) {
host_action_paused(false);