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