1
0
mirror of https://github.com/bdring/Grbl_Esp32.git synced 2025-09-02 10:53:01 +02:00

Fixed a few more gets

This commit is contained in:
Stefan de Bruijn
2021-05-21 20:22:21 +02:00
parent fe143b3ae9
commit c20a6fe4a3
2 changed files with 3 additions and 1 deletions

View File

@@ -59,7 +59,7 @@ namespace Spindles {
_pwm_max_value = _pwm_period; _pwm_max_value = _pwm_period;
_min_rpm = 0; _min_rpm = 0;
_max_rpm = laser_full_power->get(); _max_rpm = _laser_full_power;
_piecewise_linear = false; _piecewise_linear = false;

View File

@@ -53,6 +53,8 @@ namespace Spindles {
_10v _10v; _10v _10v;
void Spindle::select() { void Spindle::select() {
// TODO FIXME: I don't think we need this anymore; the factory should take care of it...
switch (static_cast<SpindleType>(spindle_type->get())) { switch (static_cast<SpindleType>(spindle_type->get())) {
case SpindleType::PWM: case SpindleType::PWM:
spindle = &pwm; spindle = &pwm;