Limit Case Light PWM (#15459)

This commit is contained in:
Giuliano Zaro
2019-10-06 05:32:50 +02:00
committed by Scott Lahteine
parent f8498d8a52
commit a1ad01e4ab
107 changed files with 123 additions and 1 deletions

View File

@ -1334,6 +1334,17 @@
#define FAST_PWM_FAN_FREQUENCY ((F_CPU) / (2 * 255 * 1)) // Fan frequency default
#endif
/**
* MIN/MAX case light PWM scaling
*/
#if HAS_CASE_LIGHT
#ifndef CASE_LIGHT_MAX_PWM
#define CASE_LIGHT_MAX_PWM 255
#elif !WITHIN(CASE_LIGHT_MAX_PWM, 1, 255)
#error "CASE_LIGHT_MAX_PWM must be a value from 1 to 255."
#endif
#endif
/**
* Bed Probe dependencies
*/