From: joan Date: Tue, 13 Feb 2018 22:04:21 +0000 (+0000) Subject: V66: #168 check commands against PI_CMD_SCRIPT X-Git-Tag: archive/raspbian/1.68-2+rpi1~42 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e9ffe3d925c7c3efa1ce8db9b4bf09300e03b898;p=pigpio.git V66: #168 check commands against PI_CMD_SCRIPT --- 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