V66: #168 check commands against PI_CMD_SCRIPT
authorjoan <joan@abyz.co.uk>
Tue, 13 Feb 2018 22:04:21 +0000 (22:04 +0000)
committerjoan <joan@abyz.co.uk>
Tue, 13 Feb 2018 22:04:21 +0000 (22:04 +0000)
pigpio.c
pigpio.h

index 87bd6968f800fb62193cdb7371f4e03ed5d38c7c..710d20f642433dcf2127a527d6db6c3498aedfc5 100644 (file)
--- 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])
             {
index 15dd1c3b02294a7a3ba85e42fb43dd8b65498ab0..f81f9f9011e0917fecf5d9a378c4fdd8a7e16c1c 100644 (file)
--- a/pigpio.h
+++ b/pigpio.h
@@ -31,7 +31,7 @@ For more information, please refer to <http://unlicense.org/>
 #include <stdint.h>
 #include <pthread.h>
 
-#define PIGPIO_VERSION 6602
+#define PIGPIO_VERSION 6603
 
 /*TEXT