CAF 1 on by default, when CFC 0 then CAF 0

This commit is contained in:
Marianpol 2022-09-10 08:56:18 +02:00
parent 0b1bcfa0c3
commit dff09e1a0a
2 changed files with 2 additions and 2 deletions

View File

@ -1930,7 +1930,7 @@ class ELM:
self.check_answer(self.cmd("at l0"))
self.check_answer(self.cmd("at al"))
if mod_globals.opt_obdlink and mod_globals.opt_caf:
if mod_globals.opt_obdlink and mod_globals.opt_caf and not self.ATCFC0:
self.check_answer(self.cmd("AT CAF1"))
self.check_answer(self.cmd("STCSEGR 1"))
self.check_answer(self.cmd("STCSEGT 1"))

View File

@ -130,7 +130,7 @@ def optParser():
parser.add_argument("--caf",
help="turn on CAN Auto Formatting. Available only for OBDLink",
dest="caf",
default=False,
default=True,
action="store_true")
parser.add_argument("--n1c",