Skip to content

Commit e5efcd6

Browse files
committed
WIP: ERROR: Add OutputBuffer param to Kinematics::Configure()
1 parent 8ac3679 commit e5efcd6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Movement/Kinematics/HangprinterKinematics.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ const char *HangprinterKinematics::GetName(bool forStatusReport) const noexcept
153153

154154
// Set the parameters from a M665, M666 or M669 command
155155
// Return true if we changed any parameters that affect the geometry. Set 'error' true if there was an error, otherwise leave it alone.
156-
bool HangprinterKinematics::Configure(unsigned int mCode, GCodeBuffer& gb, const StringRef& reply, bool& error) THROWS(GCodeException) /*override*/
156+
bool HangprinterKinematics::Configure(unsigned int mCode, GCodeBuffer& gb, const StringRef& reply, OutputBuffer *& buf, bool& error) THROWS(GCodeException) /*override*/
157157
{
158158
bool seen = false;
159159
if (mCode == 669)

src/Movement/Kinematics/HangprinterKinematics.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class HangprinterKinematics : public RoundBedKinematics
2020

2121
// Overridden base class functions. See Kinematics.h for descriptions.
2222
const char *GetName(bool forStatusReport) const noexcept override;
23-
bool Configure(unsigned int mCode, GCodeBuffer& gb, const StringRef& reply, bool& error) THROWS(GCodeException) override;
23+
bool Configure(unsigned int mCode, GCodeBuffer& gb, const StringRef& reply, OutputBuffer *& buf, bool& error) THROWS(GCodeException) override;
2424
bool CartesianToMotorSteps(const float machinePos[], const float stepsPerMm[], size_t numVisibleAxes, size_t numTotalAxes, int32_t motorPos[], bool isCoordinated) const noexcept override;
2525
void MotorStepsToCartesian(const int32_t motorPos[], const float stepsPerMm[], size_t numVisibleAxes, size_t numTotalAxes, float machinePos[]) const noexcept override;
2626
bool SupportsAutoCalibration() const noexcept override { return true; }

src/Movement/Kinematics/Kinematics.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class Kinematics INHERIT_OBJECT_MODEL
9494
// If errors were discovered while processing parameters, put an appropriate error message in 'reply' and set 'error' to true.
9595
// If no relevant parameters are found, print the existing ones to 'reply' and return false.
9696
// If 'mCode' does not apply to this kinematics, call the base class version of this function, which will print a suitable error message.
97-
virtual bool Configure(unsigned int mCode, GCodeBuffer& gb, const StringRef& reply, bool& error) THROWS(GCodeException);
97+
virtual bool Configure(unsigned int mCode, GCodeBuffer& gb, const StringRef& reply, OutputBuffer *& buf, bool& error) THROWS(GCodeException);
9898

9999
// Convert Cartesian coordinates to motor positions measured in steps from reference position
100100
// 'machinePos' is a set of axis and extruder positions to convert

0 commit comments

Comments
 (0)