   }
 }
 
-static void enableAdcPullups(void)
-{
-  for (unsigned char pin=0; pin < RF_PINS_PER_SOURCE; ++pin)
-  {
-    if (PIN_DISABLED(pin))
-      continue;
-
-    // The probe themistor voltage dividers are normally powered down
-    // to save power, using digital lines to supply Vcc to them.
-    // Lines are used sequentially starting from _pinProbeSupplyBase
-    // Note you can use the analog internal pullups as the fixed half of
-    // the divider by setting this value to A0 (or higher).
-    // The analog pullups are 20k-40kOhms, about 36k on my handful of chips.
-    // If using digital lines you will supply your own resistor for the fixed half.
-    digitalWrite(_pinProbeSupplyBase + pin, HIGH);
-  }
-}
-
 static void stabilizeAdc(void)
 {
   const unsigned char INTERNAL_REF = 0b1110;
   unsigned int last;
-  unsigned int totalCnt = 0;
-  unsigned int sameCnt = 0;
+  unsigned char totalCnt = 0;
+  unsigned char sameCnt = 0;
   unsigned int curr = analogReadSleep(INTERNAL_REF);
   // Reads the adc a bunch of times until the value settles
   // Usually you hear "discard the first few ADC readings after sleep"


  // Enable the ADC
  ADCSRA |= bit(ADEN);
  enableAdcPullups();
  stabilizeAdc();
  for (unsigned char pin=0; pin < RF_PINS_PER_SOURCE; ++pin)
  {
    if (PIN_DISABLED(pin))

  ADCSRA &= ~bit(ADEN);

  _tempReadLast = millis();
}

void setup(void)
