Browse Source

✏️ MMU2 followup (#24770)

Followup to #24750
FBN 2 years ago
parent
commit
6fdf9bf2ea
No account linked to committer's email address
2 changed files with 3 additions and 1 deletions
  1. 2
    1
      Marlin/src/feature/mmu/mmu2.cpp
  2. 1
    0
      Marlin/src/feature/mmu/mmu2.h

+ 2
- 1
Marlin/src/feature/mmu/mmu2.cpp View File

654
 
654
 
655
   void MMU2::mmu_continue_loading() {
655
   void MMU2::mmu_continue_loading() {
656
     // Try to load the filament a limited number of times
656
     // Try to load the filament a limited number of times
657
+    bool fil_present = 0;
657
     for (uint8_t i = 0; i < MMU_LOADING_ATTEMPTS_NR; i++) {
658
     for (uint8_t i = 0; i < MMU_LOADING_ATTEMPTS_NR; i++) {
658
       DEBUG_ECHOLNPGM("Load attempt #", i + 1);
659
       DEBUG_ECHOLNPGM("Load attempt #", i + 1);
659
 
660
 
660
       // Done as soon as filament is present
661
       // Done as soon as filament is present
661
-      bool fil_present = FILAMENT_PRESENT();
662
+      fil_present = FILAMENT_PRESENT();
662
       if (fil_present) break;
663
       if (fil_present) break;
663
 
664
 
664
       // Attempt to load the filament, 1mm at a time, for 3s
665
       // Attempt to load the filament, 1mm at a time, for 3s

+ 1
- 0
Marlin/src/feature/mmu/mmu2.h View File

86
   #endif
86
   #endif
87
 
87
 
88
   #if ENABLED(MMU_EXTRUDER_SENSOR)
88
   #if ENABLED(MMU_EXTRUDER_SENSOR)
89
+    #define MMU_LOAD_FEEDRATE 19.02f // (mm/s)
89
     static void mmu_continue_loading();
90
     static void mmu_continue_loading();
90
   #endif
91
   #endif
91
 
92
 

Loading…
Cancel
Save