Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/Tool.h')
-rw-r--r--src/Tool.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Tool.h b/src/Tool.h
index 16210259..223ebbe9 100644
--- a/src/Tool.h
+++ b/src/Tool.h
@@ -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];
}