From 2c9a00a2f995d760e9685abb43ec584b5a44de5c Mon Sep 17 00:00:00 2001 From: TheRaspyDev Date: Fri, 19 May 2017 10:24:19 +0200 Subject: [PATCH] Fixing ifFlags check for additional flag --- pigpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pigpio.c b/pigpio.c index 81af8af..7c130e5 100644 --- a/pigpio.c +++ b/pigpio.c @@ -13380,7 +13380,7 @@ int gpioCfgInterfaces(unsigned ifFlags) CHECK_NOT_INITED; - if (ifFlags > 7) + if (ifFlags > 15) SOFT_ERROR(PI_BAD_IF_FLAGS, "bad ifFlags (%X)", ifFlags); gpioCfg.ifFlags = ifFlags;