mirror of https://github.com/joan2937/pigpio
Fixing ifFlags check for additional flag
This commit is contained in:
parent
32727085fc
commit
2c9a00a2f9
2
pigpio.c
2
pigpio.c
|
@ -13380,7 +13380,7 @@ int gpioCfgInterfaces(unsigned ifFlags)
|
||||||
|
|
||||||
CHECK_NOT_INITED;
|
CHECK_NOT_INITED;
|
||||||
|
|
||||||
if (ifFlags > 7)
|
if (ifFlags > 15)
|
||||||
SOFT_ERROR(PI_BAD_IF_FLAGS, "bad ifFlags (%X)", ifFlags);
|
SOFT_ERROR(PI_BAD_IF_FLAGS, "bad ifFlags (%X)", ifFlags);
|
||||||
|
|
||||||
gpioCfg.ifFlags = ifFlags;
|
gpioCfg.ifFlags = ifFlags;
|
||||||
|
|
Loading…
Reference in New Issue