Skip to content

Commit

Permalink
Fix compile of MMU2 with S-mode disabled (MarlinFirmware#19584)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellensp authored and thinkyhead committed Oct 16, 2020
1 parent 90801f8 commit 9834a36
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Marlin/src/feature/mmu2/mmu2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -340,17 +340,17 @@ void MMU2::mmu_loop() {
#endif

if (rx_ok()) {
// response to C0 mmu command in PRUSA_MMU2_S_MODE
// Response to C0 mmu command in PRUSA_MMU2_S_MODE
bool can_reset = true;
if (ENABLED(PRUSA_MMU2_S_MODE) && last_cmd == MMU_CMD_C0) {
if (!mmu2s_triggered) {
#if ENABLED(PRUSA_MMU2_S_MODE)
if (!mmu2s_triggered && last_cmd == MMU_CMD_C0) {
can_reset = false;
// MMU ok received but filament sensor not triggered, retrying...
DEBUG_ECHOLNPGM("MMU => 'ok' (filament not present in gears)");
DEBUG_ECHOLNPGM("MMU <= 'C0' (keep trying)");
MMU2_COMMAND("C0");
}
}
#endif
if (can_reset) {
DEBUG_ECHOLNPGM("MMU => 'ok'");
ready = true;
Expand Down

0 comments on commit 9834a36

Please sign in to comment.