From 0d64cfa2e5589f7e27ac309efad4dbc3077ca9be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gu=C3=B0ni=20M=C3=A1r=20Gilbert?= Date: Fri, 19 Aug 2022 22:15:17 +0000 Subject: [PATCH] extruder variable should be one byte Saves 1 byte of SRAM and 132 bytes of flash --- Firmware/mmu2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Firmware/mmu2.h b/Firmware/mmu2.h index a1cd8ee7a..33800b946 100644 --- a/Firmware/mmu2.h +++ b/Firmware/mmu2.h @@ -241,7 +241,7 @@ private: bool WaitForMMUReady(); ProtocolLogic logic; ///< implementation of the protocol logic layer - int extruder; ///< currently active slot in the MMU ... somewhat... not sure where to get it from yet + uint8_t extruder; ///< currently active slot in the MMU ... somewhat... not sure where to get it from yet uint8_t previous_extruder; ///< last active slot in the MMU, useful for M600 uint8_t tool_change_extruder; ///< only used for UI purposes