Pārlūkot izejas kodu

Fix insane mmu2 timeout (#21855)

* Fix insane mmu2 timeout

Fix insane timeout value. Now match original Prusa firmware.

* Update mmu2.cpp

Co-authored-by: Luu Lac <45380455+shitcreek@users.noreply.github.com>
Giuliano Zaro 3 gadus atpakaļ
vecāks
revīzija
fff5e9ba4a
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      Marlin/src/feature/mmu/mmu2.cpp

+ 1
- 1
Marlin/src/feature/mmu/mmu2.cpp Parādīt failu

@@ -159,7 +159,7 @@ void MMU2::mmu_loop() {
159 159
         MMU2_COMMAND("S1");   // Read Version
160 160
         state = -2;
161 161
       }
162
-      else if (millis() > 3000000) {
162
+      else if (millis() > 30000) { // 30sec after reset disable MMU
163 163
         SERIAL_ECHOLNPGM("MMU not responding - DISABLED");
164 164
         state = 0;
165 165
       }

Notiek ielāde…
Atcelt
Saglabāt