hobd.OBD2Sensor.to_h C# (CSharp) 메소드

to_h() 공개 정적인 메소드

public static to_h ( byte a ) : byte
a byte
리턴 byte
        public static byte to_h(byte a)
        {
            if (a >= 0x30 && a <= 0x39) return (byte)(a-0x30);
            if (a >= 0x41 && a <= 0x46) return (byte)(a+10-0x41);
            if (a >= 0x61 && a <= 0x66) return (byte)(a+10-0x61);
            return 255;
        }