From 5113a3f5d343272a2a9909fdf74429844a8cf63c Mon Sep 17 00:00:00 2001 From: bsongis Date: Sat, 3 Nov 2012 22:24:19 +0000 Subject: [PATCH] [all] Fix for helping to add new curves into open9x --- src/open9x.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/open9x.cpp b/src/open9x.cpp index 9f4a07d2c..3fed99990 100644 --- a/src/open9x.cpp +++ b/src/open9x.cpp @@ -352,7 +352,7 @@ int16_t applyCurve(int16_t x, int8_t idx) } if (idx < 0) { x = -x; - idx = -idx + 6; + idx = -idx + CURVE_BASE - 1; } return intpol(x, idx - 7); }