How to make DC Motor move after Stepper motor Rotates once

Hello! I am working on a project for my senior design project. In terms of the electrical systems: Once a button is pressed, a DC motor should rotate CW until a microswitch is triggered, then a stepper motor should rotate 360 degrees and lastly the same DC motor should rotate CCW until a separate microswtich is triggered. I am having trouble getting the DC motor to rotate counter clockwise after the stepper motor rotates. Does anybody know why this might be happening? Is it possibly something with the code? Any help would be much appreciated! I attached the code below

Deployment_and_Failsafe_with_Stepper.ino (3.31 KB)

H bridge, schematic & please.

EsahiG:
I am having trouble getting the DC motor to rotate counter clockwise after the stepper motor rotates.

You have not told us what actually happens when you run the program.

Your code is poorly formatted which makes it hard to read. Please use the AutoFormat tool to indent it consistently.

Also, for short programs it is easier for other people if you include your code directly in your Post. Make sure to use the code button </>

...R