   pinMode(PWM_PIN, OUTPUT);
   pinMode(FAN_PIN, OUTPUT);
   Serial.begin(9600);
+  HWSerial.begin(9600);
   //Wait for the serial pins to connect (May only be needed for Leonardo board)
-  while (!Serial) {}
+  while (!HWSerial) {}
   CommandPacket* cmd = getCommand(OPEN);
   sendCommand(cmd);
   free(cmd);


//Error pin to flash on error
int ERROR_PIN = 13;
int PWM_PIN = 5;
int FAN_PIN = 6;
//Maximum percentage
int MAX_PWM = 99;
//One unit of delay (in ms)
int DELAY = 250;
/**
 * Enumeration of commands
 * Value set to control code of command

  packet = readCommand();
  //If NAK error, otherwise return param
  uint32_t param = packet->param;
  //uint16_t cmd = packet->cmd;
  free(packet);
  return param;
}
