Limit Case Light PWM (#15459)

This commit is contained in:
Giuliano Zaro authored and Scott Lahteine committed 2019-10-05 22:32:50 -05:00
1 parent f8498d8a52
commit a1ad01e4ab
107 files changed
+123 -1

No files matched your search

+11
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
*/