I think code 17 is an oxygen sensor, so you're probably right.
As for passing smog, is there any documentation of the valve seals being done? This is a common wear item with the M103 and can lead to increased oil consumption and higher emissions.
Disconnecting the battery for a bit will reset it.
|