From 68bd7f9b19414e679cb855c9134f692b332a9d99 Mon Sep 17 00:00:00 2001 From: VintagePC <53943260+vintagepc@users.noreply.github.com> Date: Sat, 12 Nov 2022 07:49:36 -0500 Subject: [PATCH] Fix excessive flash usage. --- Firmware/mmu2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Firmware/mmu2.cpp b/Firmware/mmu2.cpp index 398e85c0c..4fd89144d 100644 --- a/Firmware/mmu2.cpp +++ b/Firmware/mmu2.cpp @@ -635,9 +635,9 @@ void MMU2::ResumeHotendTemp() { lcd_display_message_fullscreen_P(_i("MMU Retry: Restoring temperature...")); ////MSG_MMU_RESTORE_TEMP c=20 r=4 //@todo better report the event and let the GUI do its work somewhere else ReportErrorHookSensorLineRender(); - waitForHotendTargetTemp(100, [this]{ + waitForHotendTargetTemp(100, []{ manage_inactivity(true); - this->mmu_loop_inner(); // This keeps the comms alive, the call in manage_inactivity is blocked by recursion guard. + mmu2.mmu_loop_inner(); ReportErrorHookDynamicRender(); }); lcd_update_enable(true); // temporary hack to stop this locking the printer...