ellensp
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
4 deletions
-
Marlin/src/feature/mmu2/mmu2.cpp
|
@ -340,17 +340,17 @@ void MMU2::mmu_loop() { |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
if (rx_ok()) { |
|
|
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; |
|
|
bool can_reset = true; |
|
|
if (ENABLED(PRUSA_MMU2_S_MODE) && last_cmd == MMU_CMD_C0) { |
|
|
#if ENABLED(PRUSA_MMU2_S_MODE) |
|
|
if (!mmu2s_triggered) { |
|
|
if (!mmu2s_triggered && last_cmd == MMU_CMD_C0) { |
|
|
can_reset = false; |
|
|
can_reset = false; |
|
|
// MMU ok received but filament sensor not triggered, retrying...
|
|
|
// MMU ok received but filament sensor not triggered, retrying...
|
|
|
DEBUG_ECHOLNPGM("MMU => 'ok' (filament not present in gears)"); |
|
|
DEBUG_ECHOLNPGM("MMU => 'ok' (filament not present in gears)"); |
|
|
DEBUG_ECHOLNPGM("MMU <= 'C0' (keep trying)"); |
|
|
DEBUG_ECHOLNPGM("MMU <= 'C0' (keep trying)"); |
|
|
MMU2_COMMAND("C0"); |
|
|
MMU2_COMMAND("C0"); |
|
|
} |
|
|
} |
|
|
} |
|
|
#endif |
|
|
if (can_reset) { |
|
|
if (can_reset) { |
|
|
DEBUG_ECHOLNPGM("MMU => 'ok'"); |
|
|
DEBUG_ECHOLNPGM("MMU => 'ok'"); |
|
|
ready = true; |
|
|
ready = true; |
|
|