Using Dual VNH3SP30 Motor Driver with arduino

Ah, I see. If you want a slightly cleaner approach, you can monitor the motor fault pin and only toggle the direction pins when you notice that a fault has occurred. I do suggest you try to understand what is causing the fault, however.

- Ben