I switched to expert robot config and the code stopped working
// check the ButtonL1/ButtonL2 status to control FlyWheel
if (Controller1.ButtonL1.pressing()) {
FlyWheel.spin(forward);
Controller1LeftShoulderControlMotorsStopped = false;
} else if (Controller1.ButtonL2.pressing()) {
FlyWheel.spin(reverse);
Controller1LeftShoulderControlMotorsStopped = false;
} else if (!Controller1LeftShoulderControlMotorsStopped) {
FlyWheel.stop();
// set the toggle so that we don't constantly tell the motor to stop when the buttons are released
Controller1LeftShoulderControlMotorsStopped = true;
}