Skip to content

Commit

Permalink
fix Atomizer_ReadBoardTemp
Browse files Browse the repository at this point in the history
  • Loading branch information
cmock committed May 29, 2016
1 parent 3032b80 commit 5d2d437
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/atomizer/Atomizer.c
Original file line number Diff line number Diff line change
Expand Up @@ -824,5 +824,5 @@ uint8_t Atomizer_ReadBoardTemp() {
// Interpolate
lowerBound = Atomizer_boardTempTable[i];
higherBound = Atomizer_boardTempTable[i - 1];
return 5 * (i - 1) + (thermRes - lowerBound) * 5 / (higherBound - lowerBound);
return 5 * i - (thermRes - lowerBound) * 5 / (higherBound - lowerBound);
}

0 comments on commit 5d2d437

Please sign in to comment.