summaryrefslogtreecommitdiff
path: root/pigpiod.c
diff options
context:
space:
mode:
authorMaurus Erni <maurus.erni@geocom.ch>2017-04-25 13:50:01 +0200
committerMaurus Erni <maurus.erni@geocom.ch>2017-04-25 13:50:01 +0200
commit29bbd99b0e0dc1f45c815dbd29d015a8ace50808 (patch)
treead953f3edc279028e66a75e268b867eb0d7f3bcf /pigpiod.c
parentc4c8ce50c61f923e3c90d45ef097097fe03fd091 (diff)
Adding flag to disable alerts (polling of GPIOs)
Diffstat (limited to 'pigpiod.c')
-rw-r--r--pigpiod.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pigpiod.c b/pigpiod.c
index 989cf07..8323380 100644
--- a/pigpiod.c
+++ b/pigpiod.c
@@ -217,6 +217,10 @@ static void initOpts(int argc, char *argv[])
ifFlags |= PI_LOCALHOST_SOCK_IF;
break;
+ case 'm':
+ ifFlags |= PI_DISABLE_ALERT;
+ break;
+
case 'n':
addr = checkAddr(optarg);
if (addr && (numSockNetAddr<MAX_CONNECT_ADDRESSES))