The front and rear Smart Pies rotate in different directions as the controller is mounted on different sides of the wheel.
I don't know if the direction is dependant upon different controller firmware
* or simply selected by the wiring connections, but you should be able to reverse the default direction of rotation by swapping the Yellow and Blue phase wires
and the Yellow and Green Hall sensor wires.
Before changing the wires, it might be worth checking that it is not simply running in reverse because the Black and Blue wires on the pedelec cable coming from the controller have accidentally touched against each other.
Alan *PLEASE READ MY UPDATED POST BELOW