Beispiel #1
0
 protected string processProto(string proto)
 {
     if (!Enum.IsDefined(typeof(ELM.OBD_PROTOCOLS), (object)int.Parse(proto)))
     {
         return("BUS INIT: ...ERROR");
     }
     this.proto = (ELM.OBD_PROTOCOLS)Enum.Parse(typeof(ELM.OBD_PROTOCOLS), proto);
     return("OK");
 }
Beispiel #2
0
 protected void init()
 {
     this.echo  = true;
     this.line  = false;
     this.proto = ELM.OBD_PROTOCOLS.PROTO_AUTO;
 }