🎨 Misc. Spindle/Laser (etc.) cleanup

This commit is contained in:
Scott Lahteine
2021-09-06 15:34:12 -05:00
parent 3a83516232
commit 8a4fec9460
5 changed files with 70 additions and 58 deletions

View File

@ -108,7 +108,7 @@ void GcodeSuite::M3_M4(const bool is_M4) {
#if ENABLED(SPINDLE_LASER_PWM)
if (parser.seenval('O')) {
cutter.unitPower = cutter.power_to_range(parser.value_byte(), 0);
cutter.set_ocr_power(cutter.unitPower); // The OCR is a value from 0 to 255 (uint8_t)
cutter.ocr_set_power(cutter.unitPower); // The OCR is a value from 0 to 255 (uint8_t)
}
else
cutter.set_power(cutter.upower_to_ocr(get_s_power()));