Skip to content
Commit 45e55d63 authored by Michael Hope's avatar Michael Hope Committed by Fabio Baltieri
Browse files

drivers: pwm: fix an off-by-one error in the CH32V PWM driver



The period is the reload register plus 1. Adjust. Note that the
earlier code handles the cases where the pulse time is zero or equal
to the period.

Signed-off-by: default avatarMichael Hope <michaelh@juju.nz>
parent ace509fc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment