what you really want to do is plug it back in put the ign on then get to the cables once connected, wether thats at the back of the plug or at the ecu and then find out if it goes from 0-5v or 5-0v
if it goes 5-0v then the 2 outer wires need swapping round.