Originally posted by 0ddball ?? he just told you in your other thread. brown/red
The knock sensor plug is black.
The fuel tank vent valve is either brown or red - depends on year of car IIRC, mines red.
I don't think you'll have damaged it after a couple of miles - if you swap them over correctly do you still get the code? If so you might have ruined your ECU (mine was f*cked as well as the engine which eventually started throwing oil out of the breather pipe as I melted part of the head, the pistons were fine though, but I was running phase 3.5 at 22psi overboost).