diff --git a/NuEVI/NuEVI.ino b/NuEVI/NuEVI.ino index 4f7cf5c..0b772b3 100644 --- a/NuEVI/NuEVI.ino +++ b/NuEVI/NuEVI.ino @@ -857,7 +857,7 @@ unsigned int multiMap(unsigned short val, const unsigned short * _in, const unsi // map breath values to selected curve unsigned int breathCurve(unsigned int inputVal) { - if(curve > ARR_LEN(curves)) return inputVal; + if(curve >= ARR_LEN(curves)) return inputVal; return multiMap(inputVal, curveIn, curves[curve], 17); }