 void switchLight(byte* ptr)
 {
   lampStatus = ptr[16];
-  if(lampStatus == 0xFF){
+  if(lampStatus == 255){
     digitalWrite(led, HIGH);
   }
   else{
     digitalWrite(led, LOW);
   }
-  ptr[12] = 0xFF;
+  ptr[12] = 255;
 }
 

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

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

RF24 radio(9,10);

