OBD.NET icon indicating copy to clipboard operation
OBD.NET copied to clipboard

PID 01 For MIL lamp status

Open nikolaj99 opened this issue 4 years ago • 2 comments

I cant seem to find a method for getting the MIL lamp status, what i mean by this is i want to get to see is it on or off. If someone could reply i would be very gretful.

nikolaj99 avatar Jul 30 '21 20:07 nikolaj99

Hey, message 0x01 isn't implemented currently. If you only care about the MIL status you should be able to get it with this (not tested though):

public class MILStatus : AbstractOBDData
{
    #region Properties & Fields

    public bool MILStatus => (A & (1 << 7)) != 0;

    #endregion

    #region Constructors

    public MILStatus()
        : base(0x01, 4)
    { }

    #endregion

    #region Methods

    public override string ToString() => MILStatus.ToString();

    #endregion
}

DarthAffe avatar Jul 30 '21 22:07 DarthAffe

Thanks for the reply , will try it first thing in the morning with a vehicle.

nikolaj99 avatar Jul 30 '21 22:07 nikolaj99