Browse Source

temperature.cpp: Use OVERSAMPLENR in oversampling calculation.

pull/1/head
David Forrest 11 years ago
parent
commit
476c7193d8
  1. 2
      Marlin/temperature.cpp

2
Marlin/temperature.cpp

@ -1187,7 +1187,7 @@ ISR(TIMER0_COMPB_vect)
// break; // 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. if (!temp_meas_ready) //Only update the raw values if they have been read. Else we could be updating them during reading.
{ {

Loading…
Cancel
Save