From c2c2fd3d2fa57b4232b1e99e005d3e877a7aca7e Mon Sep 17 00:00:00 2001 From: TheZeroBeast Date: Fri, 9 Nov 2018 21:28:34 +1000 Subject: [PATCH] Fixes issue #8 Fixes issue #8 on https://github.com/TheZeroBeast/MM-control-01/issues/8 Cleared filamentLoaded bool when MMU Ejecting filament. --- Firmware/mmu.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Firmware/mmu.cpp b/Firmware/mmu.cpp index 5099bcb4a..ca3f8662c 100644 --- a/Firmware/mmu.cpp +++ b/Firmware/mmu.cpp @@ -706,6 +706,7 @@ void mmu_M600_load_filament(bool automatic) { //load filament for mmu v2 tmp_extruder = mmu_extruder; + lastLoadedFilament = -10; if (!automatic) { #ifdef MMU_M600_SWITCH_EXTRUDER bool yes = lcd_show_fullscreen_message_yes_no_and_wait_P(_i("Do you want to switch extruder?"), false); @@ -1277,4 +1278,4 @@ void mmu_eject_filament(uint8_t filament, bool recover) { puts_P(PSTR("Filament nr out of range!")); } -} +}