Help me to modify barcode scanner program

i have a problem to program barcode scanner for my last project. This is my program :

#include <hid.h> //Add to Oleg Mazurov code to Bar Code Scanner
#include <hiduniversal.h> //Add to Oleg Mazurov code to Bar Code Scanner
#include <usbhub.h>
#include <avr/pgmspace.h>
#include <Usb.h>
#include <usbhub.h>
#include <avr/pgmspace.h>
#include <hidboot.h>
#include <SPI.h>
#include <Servo.h>
Servo Servo1 ;
USB Usb;
HIDUniversal Hid(&Usb); //Add this line so that the barcode scanner will be recognized, I use "Hid" below
HIDBoot<HID_PROTOCOL_KEYBOARD> Keyboard(&Usb);
char BarcodeBuffer[20] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; // Barcode scanner buffer
int BarcodeBufferIndex = 0 ; // Pointer barcode scanner buffer
boolean BarcodeComplete = false ;
class KbdRptParser : public KeyboardReportParser
{
void PrintKey(uint8_t mod, uint8_t key); // Add this line to print character in ASCII
protected:
void OnKeyUp (uint8_t mod, uint8_t key);
virtual void OnKeyDown (uint8_t mod, uint8_t key);
virtual void OnKeyPressed(uint8_t key);
};

void KbdRptParser::OnKeyDown(uint8_t mod, uint8_t key)
{
uint8_t c = OemToAscii(mod, key);
if (c)
OnKeyPressed(c);
}

/* what to do when symbol arrives */
void KbdRptParser::OnKeyUp(uint8_t mod, uint8_t key)
{
if (key==40)
{ // check for "enter" new line this is end of barcode
BarcodeComplete = true ;
}
}
void KbdRptParser::OnKeyPressed(uint8_t key)
{
if(key!=19) Serial.print((char)key);
else Serial.println((char)0x0D);

BarcodeBufferIndex ++;
};
KbdRptParser Prs;

void setup()
{
Serial.begin(9600);
if(Usb.Init()==-1) Serial.println("OSC did not start.");
else Serial.println("Barcode Ready");
Hid.SetReportParser(0,(HIDReportParser*)&Prs); //Change "Keyboard" for "Hid"
Servo1.attach(12);
}

void loop()
{
BarcodeBufferIndex = 0;
while (!BarcodeComplete)
{
Usb.Task();
}
if (BarcodeComplete = HIGH){
Servo1.write(30);
delay(3000);
}
else (BarcodeComplete = LOW ){
Servo1.write(60);
delay(3000);
}
BarcodeComplete = false ;
BarcodeBufferIndex --;
Serial.write(BarcodeBuffer,BarcodeBufferIndex);
Serial.write('\n');
}

barcode scanners have managed to read barcodes and servo motors moving at 30 degrees, but I want the servo motor to move at 60 degrees when the barcode scanner fails to read the barcode, can someone help me ?

  if (BarcodeComplete = HIGH){Oops

I haven't read through your entire code but this line
else (BarcodeComplete = LOW ){
should be
else if (BarcodeComplete == LOW ){