Code Not Downloading

Can someone explain why this code says it’s downloading to my robot, but whenever I go on my controller, it has the old code?

//vex::competition Competition;
#include “robot-config.h”

void pre_auton( void ) {

}

void autonomous( void ) {
LeftShoot.spin(vex::directionType::fwd,100,vex::velocityUnits::rpm);
LeftShoot.spin(vex::directionType::rev,100,vex::velocityUnits::rpm);
vex::task::sleep(6000);
Intake.spin(vex::directionType::fwd,100,vex::velocityUnits::rpm);
vex::task::sleep(1000);
LeftShoot.stop();
RightShoot.stop();
LeftDrive.spin(vex::directionType::rev,100,vex::velocityUnits::rpm);
RightDrive.spin(vex::directionType::fwd,100,vex::velocityUnits::rpm);
vex::task::sleep(3000);
RightDrive.stop();
LeftDrive.stop();
vex::task::sleep(1000);
LeftDrive.spin(vex::directionType::fwd,100,vex::velocityUnits::rpm);
RightDrive.spin(vex::directionType::rev,100,vex::velocityUnits::rpm);
vex::task::sleep(2500);
LeftDrive.stop();
RightDrive.stop();
}

void usercontrol( void ) {

while (1){
RightDrive.spin(vex::directionType::rev, Controller1.Axis2.value(), vex::velocityUnits::pct);
LeftDrive.spin(vex::directionType::fwd, Controller1.Axis3.value(), vex::velocityUnits::pct);

if(Controller1.ButtonA.pressing()){
LeftLift.spin(vex::directionType::rev, 100, vex::velocityUnits::pct);
RightLift.spin(vex::directionType::fwd, 100, vex::velocityUnits::pct);
}
else if(Controller1.ButtonB.pressing()){
LeftLift.spin(vex::directionType::fwd, 100, vex::velocityUnits::pct);
RightLift.spin(vex::directionType::rev, 100, vex::velocityUnits::pct);
}
else
{
LeftLift.stop();
RightLift.stop();
}

if(Controller1.ButtonR1.pressing()){
Drawbridge.spin(vex::directionType::fwd, 100, vex::velocityUnits::pct);

}

else if(Controller1.ButtonR2.pressing()){
Drawbridge.spin(vex::directionType::rev, 100, vex::velocityUnits::pct);
}
else
{
Drawbridge.stop();
}

if(Controller1.ButtonX.pressing()){
LeftShoot.spin(vex::directionType::fwd, 100, vex::velocityUnits::pct);
RightShoot.spin(vex::directionType::rev, 100, vex::velocityUnits::pct);
}
else
{
LeftShoot.stop();
RightShoot.stop();
}

if(Controller1.ButtonUp.pressing()){
Intake.spin(vex::directionType::fwd, 100, vex::velocityUnits::pct);

}

else if(Controller1.ButtonB.pressing()){
Intake.spin(vex::directionType::rev, 100, vex::velocityUnits::pct);
}
else
{
Intake.stop();
}

  vex::task::sleep(20); 

}
}

int main() {
pre_auton();
//Competition.autonomous( autonomous );
Competition.drivercontrol( usercontrol );
while(1) {
vex::task::sleep(100);
}
}

Since the problem is with the controller, try doing a reset (somebody figured it out) and re-pairing (not as in fixing) it.

Are you definitely running the program from the correct slot on the Brain? What is the difference between your old and new code?

Try and re connect your controller with the cortex, with a cable, this should pair everything up right good luck ~400B