Skip to content

Commit

Permalink
Merge pull request #30 from cmock/master
Browse files Browse the repository at this point in the history
Fix board temperature reading
  • Loading branch information
ReservedField committed May 30, 2016
2 parents 3032b80 + 5d2d437 commit 97d8bb0
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 97d8bb0

Please sign in to comment.