V66: #168 check commands against PI_CMD_SCRIPT

This commit is contained in:
joan 2018-02-13 22:04:21 +00:00
parent cf29b45ded
commit e9ffe3d925
2 changed files with 2 additions and 2 deletions

View File

@ -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])
{

View File

@ -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