There are many things that could cause emission to failed including oxygen sensor, idle mixture, bad plugs/wires, and so on.
The best things that you can do is to take the car to a Mercedes specialist and have it checked out before you buy. Personally I would take it to the dealer even if I have to pay more.
|