Stepper Moves, IR Flashes, Repeat... How?

Does the motor rotate? If so, look at what causes that to happen, and where that code is called.

There is no call to the function to fire the camera. If you do fire the camera, what will take the pictures in the future? You'll need to hire a replacement.