Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PID 01 For MIL lamp status #21

Open
nikolaj99 opened this issue Jul 30, 2021 · 2 comments
Open

PID 01 For MIL lamp status #21

nikolaj99 opened this issue Jul 30, 2021 · 2 comments

Comments

@nikolaj99
Copy link

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.

@DarthAffe
Copy link
Owner

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
}

@nikolaj99
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants