drivers/leds/userled: Fix ledset validity check in ULEDIOC_SETALL ioctl.

This commit is contained in:
Jussi Kivilinna 2019-04-15 07:54:11 -06:00 committed by Gregory Nutt
parent 33f95d7f8a
commit 4b2264fa16

View File

@ -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 */