From 834b9e3d9267332875470dfb3e9fa0a9fb7bc936 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Tue, 19 Feb 2019 13:17:20 -0500 Subject: [PATCH] config: Warn that cycle_time may not match when using hardware_pwm Signed-off-by: Kevin O'Connor --- config/example-extras.cfg | 6 ++++-- config/example.cfg | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/config/example-extras.cfg b/config/example-extras.cfg index 5451eac5..806b5f7d 100644 --- a/config/example-extras.cfg +++ b/config/example-extras.cfg @@ -656,8 +656,10 @@ # this be 10 milliseconds or greater when using software based # PWM. The default is 0.100 seconds for pwm pins. #hardware_pwm: False -# Enable this to use hardware PWM instead of software PWM. The -# default is False. +# Enable this to use hardware PWM instead of software PWM. When +# using hardware PWM the actual cycle time is constrained by the +# implementation and may be significantly different than the +# requested cycle_time. The default is False. #scale: # This parameter can be used to alter how the 'value' and # 'shutdown_value' parameters are interpreted for pwm pins. If diff --git a/config/example.cfg b/config/example.cfg index f0e77e50..3468caeb 100644 --- a/config/example.cfg +++ b/config/example.cfg @@ -242,8 +242,10 @@ pin: ar9 # fan. It is recommended this be 10 milliseconds or greater when # using software based PWM. The default is 0.010 seconds. #hardware_pwm: False -# Enable this to use hardware PWM instead of software PWM. The -# default is False. +# Enable this to use hardware PWM instead of software PWM. When +# using hardware PWM the actual cycle time is constrained by the +# implementation and may be significantly different than the +# requested cycle_time. The default is False. #kick_start_time: 0.100 # Time (in seconds) to run the fan at full speed when first enabling # it (helps get the fan spinning). The default is 0.100 seconds.