drivers/leds/userled: Fix ledset validity check in ULEDIOC_SETALL ioctl.
This commit is contained in:
parent
33f95d7f8a
commit
4b2264fa16
@ -461,7 +461,7 @@ static int userled_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
||||
|
||||
/* Verify that a valid LED set was provided */
|
||||
|
||||
if ((ledset & priv->lu_supported) == ledset)
|
||||
if ((ledset & ~priv->lu_supported) == 0)
|
||||
{
|
||||
/* Update the LED state */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user