Skip to content

PID 01 For MIL lamp status #21

Open

Description

@nikolaj99

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.

Activity

  1. DarthAffe commented on Jul 30, 2021

    @DarthAffe
    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
    }
  2. nikolaj99 commented on Jul 30, 2021

    @nikolaj99
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions