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
       }
202
       }
203
       break;
203
       break;
204
 
204
 
205
+    #if ENABLED(MMU2_MODE_12V)
205
     case -5:
206
     case -5:
206
       // response to M1
207
       // response to M1
207
       if (rx_ok()) {
208
       if (rx_ok()) {
208
         DEBUG_ECHOLNPGM("MMU => ok");
209
         DEBUG_ECHOLNPGM("MMU => ok");
209
 
210
 
210
-        check_version();
211
-
212
         DEBUG_ECHOLNPGM("MMU <= 'P0'");
211
         DEBUG_ECHOLNPGM("MMU <= 'P0'");
213
 
212
 
214
         tx_str_P(PSTR("P0\n")); // read finda
213
         tx_str_P(PSTR("P0\n")); // read finda
215
         state = -4;
214
         state = -4;
216
       }
215
       }
217
       break;
216
       break;
217
+    #endif
218
 
218
 
219
     case -4:
219
     case -4:
220
       if (rx_ok()) {
220
       if (rx_ok()) {
302
 
302
 
303
         if (!finda && finda_runout_valid) filament_runout();
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
         state = 1;
306
         state = 1;
307
 
307
 
308
       break;
308
       break;

Loading…
Cancel
Save