From 0126797857c1bc0f819848db9de9542a2d1743f1 Mon Sep 17 00:00:00 2001 From: bsongis Date: Sun, 4 Nov 2012 05:41:00 +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 3fed99990..a369a95fc 100644 --- a/src/open9x.cpp +++ b/src/open9x.cpp @@ -354,7 +354,7 @@ int16_t applyCurve(int16_t x, int8_t idx) x = -x; idx = -idx + CURVE_BASE - 1; } - return intpol(x, idx - 7); + return intpol(x, idx - CURVE_BASE); } #else #define applyCurve(x, idx) (x)