From c95b463e0bee3aab8591cf4228cc53ab4ae74e26 Mon Sep 17 00:00:00 2001 From: Marek Bel Date: Mon, 3 Sep 2018 20:44:40 +0200 Subject: [PATCH] Remove unused variable yes. Remove redundant tmp_extruder assignment. --- Firmware/mmu.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Firmware/mmu.cpp b/Firmware/mmu.cpp index 78b9d93a9..0f25b30e3 100644 --- a/Firmware/mmu.cpp +++ b/Firmware/mmu.cpp @@ -466,13 +466,11 @@ void mmu_M600_wait_and_beep() { void mmu_M600_load_filament(bool automatic) { //load filament for mmu v2 - bool yes = false; tmp_extruder = mmu_extruder; if (!automatic) { #ifdef MMU_M600_SWITCH_EXTRUDER - yes = lcd_show_fullscreen_message_yes_no_and_wait_P(_i("Do you want to switch extruder?"), false); + bool yes = lcd_show_fullscreen_message_yes_no_and_wait_P(_i("Do you want to switch extruder?"), false); if(yes) tmp_extruder = choose_extruder_menu(); - else tmp_extruder = mmu_extruder; #endif //MMU_M600_SWITCH_EXTRUDER } else { @@ -989,4 +987,4 @@ void mmu_eject_filament(uint8_t filament, bool recover) { puts_P(PSTR("Filament nr out of range!")); } -} \ No newline at end of file +}