   long result;
   // Read temperature sensor against 1.1V reference
   ADMUX = _BV(REFS1) | _BV(REFS0) | _BV(MUX3);
-  delay(2); // Wait for Vref to settle
+  delayFixed(2); // Wait for Vref to settle
   ADCSRA |= _BV(ADSC); // Convert
   while (bit_is_set(ADCSRA,ADSC));
   result = ADCL;

    Serial.print(", ");
  }
  
  //Calculate Weighted Average
  unsigned long average = (3*tachDuration0 + 2*tachDuration1 + 1*tachDuration2)/6;
  interrupts();
  
  return 60.0 * 1000000 / average;
}

void enableCoil()

// -------------------------
bool isActive() 
{
  return digitalRead(ACTIVATION_PIN) == activeState;
}

long getPeriod()
