 
 float conversion_factor = 1.0;
 
-volatile int pulse_count[2] = {
-  0};
-volatile int ring_buffer[2][BUF_LEN] = {
-  0};
+volatile int pulse_count[2] = {0};
+volatile int ring_buffer[2][BUF_LEN] = {0};
 
 void setup()
 {

  pulse_count[IRQ_1]++;
}


  int counts[2][BUF_LEN];

  cli();

  tach_0 = pulse_count[0];
  tach_1 = pulse_count[1];

  for(int i = 0; i < 2; i++)
  {
    for(int j = 0; j < BUF_LEN; j++)
    {
      counts[i][j] = ring_buffer[i][j];
    }
  }

  sei();

  qsort(counts[IRQ_0], BUF_LEN, sizeof(int), cmp<int>);
  qsort(counts[IRQ_1], BUF_LEN, sizeof(int), cmp<int>);

  // report the median
  // send(counts[IRQ_0][BUF_LEN / 2], counts[IRQ_1][BUF_LEN / 2]);
  send(tach_0, tach_1);

  digitalWrite(LED, !digitalRead(LED));
  delay(1000 / HZ);
