I'm trying to wire a 12v DC motor to a DPDT switch so I can control the spin direction (by inverting the polarity) it uses two digital pins, one of them to set the direction of the motor and another one to actually enable or disable the current flow to the motor. The design I came up is this one:
I'm not sure if the relay is wired correctly to achieve the desired functionality