mirror of
https://github.com/bdring/Grbl_Esp32.git
synced 2025-08-29 17:19:50 +02:00
Laser_full_power is no longer needed
This commit is contained in:
@@ -27,7 +27,7 @@ namespace Machine {
|
||||
|
||||
// The homing cycles are 1,2,3 etc. 0 means not homed as part of home-all,
|
||||
// but you can still home it manually with e.g. $HA
|
||||
int _cycle = -1; // what homing cycle does this axis home on?
|
||||
int _cycle = -1; // what auto-homing cycle does this axis home on?
|
||||
bool _square = false;
|
||||
bool _positiveDirection = true;
|
||||
float _mpos = 0.0f; // After homing this will be the mpos of the switch location
|
||||
|
@@ -56,7 +56,7 @@ namespace Spindles {
|
||||
_speeds.push_back({ 255, 100 });
|
||||
}
|
||||
|
||||
setupSpeeds(_laser_full_power);
|
||||
setupSpeeds(_pwm_period);
|
||||
_pwm_chan_num = 0; // Channel 0 is reserved for spindle use
|
||||
}
|
||||
|
||||
|
@@ -28,9 +28,6 @@
|
||||
namespace Spindles {
|
||||
// this is the same as a PWM spindle but the M4 compensation is supported.
|
||||
class Laser : public PWM {
|
||||
private:
|
||||
uint32_t _laser_full_power;
|
||||
|
||||
public:
|
||||
Laser() = default;
|
||||
|
||||
@@ -46,11 +43,7 @@ namespace Spindles {
|
||||
// Name of the configurable. Must match the name registered in the cpp file.
|
||||
const char* name() const override { return "Laser"; }
|
||||
|
||||
void group(Configuration::HandlerBase& handler) override {
|
||||
handler.item("laser_full_power", _laser_full_power);
|
||||
|
||||
PWM::group(handler);
|
||||
}
|
||||
void group(Configuration::HandlerBase& handler) override { PWM::group(handler); }
|
||||
|
||||
~Laser() {}
|
||||
};
|
||||
|
Reference in New Issue
Block a user