       while (!done)
       {
         done = radio.read( ptr, sizeof(byte[32]) );
-        delay(20);
+        delay(10);
       }
       if (pipenum==1){
           runCommand(ptr);

#include <SPI.h>
#include "nRF24L01.h"
#include "RF24.h"

RF24 radio(9,10);


    }
    case 1:
    {
      if (ptr[12]== 0){
        switchLight(ptr);
      }
      break;
