   // Motion detected.
   bitSet(flags, F_DOWN);
   bitSet(flags, F_DOWN_STAT);
+  motionDown = 1;
   
   /*
   // Cannot detect both at once, so see if the other fired too.

{
  sleepNow();
  
  // Movement detected
  if (bitRead(flags, F_UP_STAT)) {
    bitClear(flags, F_UP_STAT);
    bitClear(flags, F_UP);
    digitalWrite(DEBUG_LED_MOTION, HIGH);
    
    char buf[50];
    sprintf(buf, "c=%lu,F_UP_STAT", count);
    transmit(buf);
    
    count++;
    
  } else if (bitRead(flags, F_DOWN_STAT)) {
    bitClear(flags, F_DOWN_STAT);
    bitClear(flags, F_DOWN);
    digitalWrite(DEBUG_LED_MOTION, HIGH);
    
    char buf[50];
    sprintf(buf, "c=%lu,F_DOWN_STAT", count);
    transmit(buf);
    
    count++;
    
  }

}


    vw_set_tx_pin(RF_TX_PIN);
    vw_setup(2000);      // Bits per sec
    
    // Been having issues with two interupt pins seemingly setting each other off.
    // so both call the same isr and only one motion is used.
    attachInterrupt(0, isrMotion, RISING);
    attachInterrupt(1, isrMotion, RISING);

}

