From e9ffe3d925c7c3efa1ce8db9b4bf09300e03b898 Mon Sep 17 00:00:00 2001 From: joan Date: Tue, 13 Feb 2018 22:04:21 +0000 Subject: [PATCH] V66: #168 check commands against PI_CMD_SCRIPT --- pigpio.c | 2 +- pigpio.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pigpio.c b/pigpio.c index 87bd696..710d20f 100644 --- a/pigpio.c +++ b/pigpio.c @@ -6553,7 +6553,7 @@ static void *pthScript(void *x) PC, instr.p[0], p1o, instr.p[1], p2o, instr.p[2]); fflush(stderr); */ - if (instr.p[0] < 100) + if (instr.p[0] < PI_CMD_SCRIPT) { if (instr.p[3]) { diff --git a/pigpio.h b/pigpio.h index 15dd1c3..f81f9f9 100644 --- a/pigpio.h +++ b/pigpio.h @@ -31,7 +31,7 @@ For more information, please refer to #include #include -#define PIGPIO_VERSION 6602 +#define PIGPIO_VERSION 6603 /*TEXT