dt.cfix logic error

Origin commit data
------------------
Branch: ni/coolstream
Commit: 2074dc4a5d
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2015-01-28 (Wed, 28 Jan 2015)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2015-01-28 18:17:50 +01:00
parent 7189a98486
commit 0ef3b291ed

View File

@@ -129,14 +129,14 @@ int main(int argc, char **argv)
}
else if (sscanf(argv[x], "-ls%X", &b) == 1)
{
if ((b > 0) || (b <= 8)) {
if ((b > 0) && (b <= 8)) {
if (ioctl(fd, IOC_FP_LED_CTRL, b | 0x80))
perror("IOC_FP_LED_CTRL");
}
}
else if (sscanf(argv[x], "-lc%X", &b) == 1)
{
if ((b > 0) || (b <= 8)) {
if ((b > 0) && (b <= 8)) {
if (ioctl(fd, IOC_FP_LED_CTRL, b))
perror("IOC_FP_LED_CTRL");
}