From 7f05ff4c48b00503b77a08d854364f431758525c Mon Sep 17 00:00:00 2001 From: Guy McSwain Date: Thu, 12 Mar 2020 09:46:58 -0500 Subject: [PATCH] Fix error messages on gpioWaveCreatePad --- pigpio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pigpio.c b/pigpio.c index bbac95d..4be1b67 100644 --- a/pigpio.c +++ b/pigpio.c @@ -9722,8 +9722,8 @@ int gpioWaveCreatePad(int pctCB, int pctBOOL, int pctTOOL) /* Reject if wave is too big */ if (numCB >= CB) return PI_TOO_MANY_CBS; - if (numBOOL >= BOOL) return PI_I2C_WRITE_FAILED; // Fix - if (numTOOL > TOOL) return PI_I2C_READ_FAILED; // Fix + if (numBOOL >= BOOL) return PI_TOO_MANY_OOL; + if (numTOOL > TOOL) return PI_TOO_MANY_OOL; /* Set the padding */ numCB = CB;