DarthAffe / OBD.NET

C#-Library to read data from car through an ELM327-/STN1170-Adapter
GNU General Public License v2.0
184 stars 83 forks source link

clear diagnostic trouble #6

Closed VexinSoft closed 6 years ago

VexinSoft commented 6 years ago

Hello,

Is There a way to clear the diagnostic trouble?

Many thanks. Gilles

DarthAffe commented 6 years ago

Hey, no, there is no direct way to do this, but as far as I know you could just add this method to OBD.NET.Common.Devices.ELM327.

public void ClearDTCs()
{
    SendCommand(((int)Mode.ClearDiagnosticTroubleCodesAndStoredValues).ToString("00"))
}

This should work. I can't give any guarantee on that since I haven't ever done this.

VexinSoft commented 6 years ago

Perfect thank you