Add HAS_HOTEND, etc.

This commit is contained in:
Scott Lahteine
2020-04-19 23:56:55 -05:00
parent 5d0deba938
commit 15f6f53638
38 changed files with 554 additions and 256 deletions

View File

@ -38,7 +38,7 @@
#include "../../../gcode/gcode.h"
#include "../../../libs/least_squares_fit.h"
#if HOTENDS > 1
#if HAS_MULTI_HOTEND
#include "../../../module/tool_change.h"
#endif

View File

@ -366,11 +366,11 @@ void PrintJobRecovery::resume() {
#endif
// Restore all hotend temperatures
#if HOTENDS
#if HAS_HOTEND
HOTEND_LOOP() {
const int16_t et = info.target_temperature[e];
if (et) {
#if HOTENDS > 1
#if HAS_MULTI_HOTEND
sprintf_P(cmd, PSTR("T%i"), e);
gcode.process_subcommands_now(cmd);
#endif
@ -517,7 +517,7 @@ void PrintJobRecovery::resume() {
DEBUG_ECHOLNPAIR("active_extruder: ", int(info.active_extruder));
#endif
#if HOTENDS
#if HAS_HOTEND
DEBUG_ECHOPGM("target_temperature: ");
HOTEND_LOOP() {
DEBUG_ECHO(info.target_temperature[e]);

View File

@ -68,7 +68,7 @@ typedef struct {
#endif
#endif
#if HOTENDS
#if HAS_HOTEND
int16_t target_temperature[HOTENDS];
#endif