Fixing ifFlags check for additional flag

This commit is contained in:
TheRaspyDev 2017-05-19 10:24:19 +02:00
parent 32727085fc
commit 2c9a00a2f9
1 changed files with 1 additions and 1 deletions

View File

@ -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;