Browse Source
The API spec states that calling pin_set() with period set to 0 is equivalent to set the PWM channel to an inactive level. Some drivers treat this input as invalid (-EINVAL), however, it's an unsupported feature. Maybe it's due to copy&paste effect? This changes error message to be clear and changes return value to -ENOTSUP for this case. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>pull/44629/head
7 changed files with 13 additions and 19 deletions
Loading…
Reference in new issue