Skip to content

Commit e2063e3

Browse files
ellenspvgadreau
authored andcommitted
Fix compile of MMU2 with S-mode disabled (MarlinFirmware#19584)
1 parent 544dd23 commit e2063e3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Marlin/src/feature/mmu2/mmu2.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -340,17 +340,17 @@ void MMU2::mmu_loop() {
340340
#endif
341341

342342
if (rx_ok()) {
343-
// response to C0 mmu command in PRUSA_MMU2_S_MODE
343+
// Response to C0 mmu command in PRUSA_MMU2_S_MODE
344344
bool can_reset = true;
345-
if (ENABLED(PRUSA_MMU2_S_MODE) && last_cmd == MMU_CMD_C0) {
346-
if (!mmu2s_triggered) {
345+
#if ENABLED(PRUSA_MMU2_S_MODE)
346+
if (!mmu2s_triggered && last_cmd == MMU_CMD_C0) {
347347
can_reset = false;
348348
// MMU ok received but filament sensor not triggered, retrying...
349349
DEBUG_ECHOLNPGM("MMU => 'ok' (filament not present in gears)");
350350
DEBUG_ECHOLNPGM("MMU <= 'C0' (keep trying)");
351351
MMU2_COMMAND("C0");
352352
}
353-
}
353+
#endif
354354
if (can_reset) {
355355
DEBUG_ECHOLNPGM("MMU => 'ok'");
356356
ready = true;

0 commit comments

Comments
 (0)