Skip to content

Commit

Permalink
Removed old/unused read_settings() interface
Browse files Browse the repository at this point in the history
  • Loading branch information
MitchBradley committed Oct 5, 2024
1 parent 10ce701 commit a26bbe1
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 16 deletions.
2 changes: 0 additions & 2 deletions FluidNC/src/Motors/Dynamixel2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,6 @@ namespace MotorDrivers {
return true;
}

void Dynamixel2::read_settings() {}

// sets the PWM to zero. This allows most servos to be manually moved
void IRAM_ATTR Dynamixel2::set_disable(bool disable) {
if (_disabled == disable) {
Expand Down
1 change: 0 additions & 1 deletion FluidNC/src/Motors/Dynamixel2.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ namespace MotorDrivers {

// Overrides for inherited methods
void init() override;
void read_settings() override;
bool set_homing_mode(bool isHoming) override;
void set_disable(bool disable) override;
void update() override;
Expand Down
5 changes: 0 additions & 5 deletions FluidNC/src/Motors/MotorDriver.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,6 @@ namespace MotorDrivers {
// the stallguard debugging problem.
virtual void debug_message();

// read_settings(), called from init(), re-establishes the motor
// setup from configurable arameters.
// TODO Architecture: Maybe this should be subsumed by init()
virtual void read_settings() {}

// set_homing_mode() is called from motors_set_homing_mode(),
// which in turn is called at the beginning of a homing cycle
// with isHoming true, and at the end with isHoming false.
Expand Down
3 changes: 2 additions & 1 deletion FluidNC/src/Motors/RcServo.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ namespace MotorDrivers {
}
}

void read_settings();

// Overrides for inherited methods
void init() override;
void read_settings() override;
bool set_homing_mode(bool isHoming) override;
void set_disable(bool disable) override;
void update() override;
Expand Down
6 changes: 0 additions & 6 deletions FluidNC/src/Motors/StandardStepper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,7 @@ using namespace Machine;
namespace MotorDrivers {

void StandardStepper::init() {
read_settings();
config_message();
}

void StandardStepper::read_settings() {
init_step_dir_pins();
}

Expand All @@ -41,8 +37,6 @@ namespace MotorDrivers {
if (_step_pin.canStep()) {
Stepping::assignMotor(axisIndex, dualAxisIndex, _step_pin.index(), _step_pin.inverted(), _dir_pin.index(), _dir_pin.inverted());
}

auto dir_gpio = _step_pin.getNative(Pin::Capabilities::Output);
}

void StandardStepper::config_message() {
Expand Down
1 change: 0 additions & 1 deletion FluidNC/src/Motors/StandardStepper.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ namespace MotorDrivers {
// No special action, but return true to say homing is possible
bool set_homing_mode(bool isHoming) override { return true; }
void set_disable(bool) override;
void read_settings() override;

void init_step_dir_pins();

Expand Down

0 comments on commit a26bbe1

Please sign in to comment.