diff options
Diffstat (limited to 'src/Tool.h')
-rw-r--r-- | src/Tool.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -34,7 +34,7 @@ public: static void Delete(Tool *t); const float *GetOffset() const; - void SetOffset(const float offs[AXES]); + void SetOffset(const float offs[MAX_AXES]); size_t DriveCount() const; int Drive(int driveNumber) const; bool ToolCanDrive(bool extrude); @@ -70,8 +70,8 @@ private: void ResetTemperatureFault(int8_t wasDudHeater); bool AllHeatersAtHighTemperature(bool forExtrusion) const; int myNumber; - int drives[DRIVES - AXES]; - float mix[DRIVES - AXES]; + int drives[DRIVES - MIN_AXES]; + float mix[DRIVES - MIN_AXES]; bool mixing; size_t driveCount; int heaters[HEATERS]; @@ -81,7 +81,7 @@ private: Tool* next; bool active; bool heaterFault; - float offset[AXES]; + float offset[MAX_AXES]; volatile bool displayColdExtrudeWarning; }; @@ -144,9 +144,9 @@ inline const float *Tool::GetOffset() const return offset; } -inline void Tool::SetOffset(const float offs[AXES]) +inline void Tool::SetOffset(const float offs[MAX_AXES]) { - for(size_t i = 0; i < AXES; ++i) + for(size_t i = 0; i < MAX_AXES; ++i) { offset[i] = offs[i]; } |