Browse Source

Remove extra MMU (non-12V) code (#13938)

`check_version` in state -5 should not be needed since it has already been called in state -4 and the tested build nr is only updated in state -4.
Giuliano Zaro 6 years ago
parent
commit
40aff7e1f2
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      Marlin/src/feature/prusa_MMU2/mmu2.cpp

+ 3
- 3
Marlin/src/feature/prusa_MMU2/mmu2.cpp View File

@@ -202,19 +202,19 @@ void MMU2::mmu_loop() {
202 202
       }
203 203
       break;
204 204
 
205
+    #if ENABLED(MMU2_MODE_12V)
205 206
     case -5:
206 207
       // response to M1
207 208
       if (rx_ok()) {
208 209
         DEBUG_ECHOLNPGM("MMU => ok");
209 210
 
210
-        check_version();
211
-
212 211
         DEBUG_ECHOLNPGM("MMU <= 'P0'");
213 212
 
214 213
         tx_str_P(PSTR("P0\n")); // read finda
215 214
         state = -4;
216 215
       }
217 216
       break;
217
+    #endif
218 218
 
219 219
     case -4:
220 220
       if (rx_ok()) {
@@ -302,7 +302,7 @@ void MMU2::mmu_loop() {
302 302
 
303 303
         if (!finda && finda_runout_valid) filament_runout();
304 304
       }
305
-      else if (ELAPSED(millis(), last_request + MMU_P0_TIMEOUT)) // Resend request after timeout (30s)
305
+      else if (ELAPSED(millis(), last_request + MMU_P0_TIMEOUT)) // Resend request after timeout (3s)
306 306
         state = 1;
307 307
 
308 308
       break;

Loading…
Cancel
Save