aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Wang2022-02-11 12:09:13 -0600
committerAnthony Wang2022-02-11 12:09:13 -0600
commit6a32a6ec293ebdefab104d24bd4b0a0c764c7d8a (patch)
tree9fc199bb1d61581e43d59dc5cab40fb3f23b00fd
parentaeb07c9c25811c4b9cb9725a524d82819d694248 (diff)
Typo
-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);
}