aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.ino2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.ino b/main.ino
index 694f8a3..0bc54d2 100644
--- a/main.ino
+++ b/main.ino
@@ -61,6 +61,6 @@ void setup() {
void loop() {
v = a2d(analogRead(THERM));
c = 0;
- for (int i = n; i >= 0; --i) c = v*c + coeff[i];
+ for (int i = order; i >= 0; --i) c = v*c + coeff[i];
Serial.println(c);
}