   uint32_t param = packet->param;
   uint16_t cmd = packet->cmd;
   free(packet);
-  //if (cmd == NAK)
-  //  error(param);
   return param;
 }
 /**

  CommandPacket* led = getCommand(CMOS_LED);
  setParameter(led,1);
  sendCommand(led);
  delay(1000);
  setParameter(led,0);
  sendCommand(led);
  free(led);


//Error pin to flash on error
int ERROR_PIN = 13;
int PWM_PIN = 3;
/**
 * Enumeration of commands
 * Value set to control code of command
