Browse Source

temperature.cpp: Use OVERSAMPLENR in oversampling calculation.

David Forrest 11 years ago
parent
commit
476c7193d8
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/temperature.cpp

+ 1
- 1
Marlin/temperature.cpp View File

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

Loading…
Cancel
Save