temperature.cpp: Use OVERSAMPLENR in oversampling calculation.

This commit is contained in:
David Forrest 2014-01-21 16:49:03 -05:00
parent 89a304fd98
commit 476c7193d8

View file

@ -1187,7 +1187,7 @@ ISR(TIMER0_COMPB_vect)
// break;
}
if(temp_count >= 16) // 8 ms * 16 = 128ms.
if(temp_count >= OVERSAMPLENR) // 8 * 16 * 1/(16000000/64/256) = 131ms.
{
if (!temp_meas_ready) //Only update the raw values if they have been read. Else we could be updating them during reading.
{