Skip to content

Commit

Permalink
modules: led: Fix LED PWM ready check
Browse files Browse the repository at this point in the history
Fix LED PWM ready check when setting RGB values.

Signed-off-by: Simen S. Røstad <[email protected]>
  • Loading branch information
simensrostad committed Oct 1, 2024
1 parent c073382 commit 8a3349d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/modules/led/led_pwm.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ int led_pwm_set_rgb(uint8_t red, uint8_t green, uint8_t blue)
int err;
enum pm_device_state led0_pwm_power_state;

if (pwm_is_ready_dt(&led0)) {
if (!pwm_is_ready_dt(&led0)) {
LOG_ERR("PWM not ready");
return -ENODEV;
}
Expand Down

0 comments on commit 8a3349d

Please sign in to comment.