浏览代码

extruder variable should be one byte

Saves 1 byte of SRAM and 132 bytes of flash
Guðni Már Gilbert 2 年之前
父节点
当前提交
0d64cfa2e5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Firmware/mmu2.h

+ 1 - 1
Firmware/mmu2.h

@@ -241,7 +241,7 @@ private:
     bool WaitForMMUReady();
     bool WaitForMMUReady();
 
 
     ProtocolLogic logic; ///< implementation of the protocol logic layer
     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 previous_extruder; ///< last active slot in the MMU, useful for M600
     uint8_t tool_change_extruder; ///< only used for UI purposes
     uint8_t tool_change_extruder; ///< only used for UI purposes