PR#413 Update doc: return current PWM dutycycle instead of 0

This commit is contained in:
Guy McSwain 2020-12-18 19:41:57 -06:00
parent 0daad582ac
commit 3140218f56
2 changed files with 3 additions and 2 deletions

View File

@ -949,7 +949,7 @@ user_gpio: 0-31.
.br
.br
Returns 0 if OK, otherwise PI_BAD_USER_GPIO or PI_NOT_PWM_GPIO.
Returns current PWM dutycycle if OK, otherwise PI_BAD_USER_GPIO or PI_NOT_PWM_GPIO.
.br

View File

@ -568,7 +568,8 @@ Return the PWM dutycycle in use on a GPIO.
user_gpio: 0-31.
. .
Returns 0 if OK, otherwise PI_BAD_USER_GPIO or PI_NOT_PWM_GPIO.
Returns current PWM dutycycle if OK,
otherwise PI_BAD_USER_GPIO or PI_NOT_PWM_GPIO.
For normal PWM the dutycycle will be out of the defined range
for the GPIO (see [*get_PWM_range*]).