nrfx_pwm: Fix incorrect check that suppresses pin configuration

The whole pin configuration function in the driver should be skipped
when both GPIO and PSEL skip flags are set, but the code that checks
this condition, despite the comment correctly explaining its purpose,
contains an unwanted negation. This commit fixes this embarrassing
copy-paste mistake.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
This commit is contained in:
Andrzej Głąbek 2021-12-22 17:45:34 +01:00 committed by Carles Cufí
parent f6b23344f6
commit a42b016d7c
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ static void configure_pins(nrfx_pwm_t const * p_instance,
{
// Nothing to do here if both GPIO configuration and pin selection are
// to be skipped (the pin numbers may be then even not specified).
if (!(p_config->skip_gpio_cfg && p_config->skip_psel_cfg))
if (p_config->skip_gpio_cfg && p_config->skip_psel_cfg)
{
return;
}