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

Fixed issue with sniffing commands encoding #901

Merged
merged 7 commits into from
Nov 1, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Corrected elm and ecu logs encoding
  • Loading branch information
josefe17 committed Oct 18, 2023
commit c8bf06709d3e519103599c4c8a4377460df397ea
4 changes: 2 additions & 2 deletions elm.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,8 +581,8 @@ def __init__(self, portName, rate, adapter_type="STD", maxspeed="No"):
os.mkdir("./logs")

if len(options.log) > 0:
self.lf = open("./logs/elm_" + options.log + ".txt", "at")
self.vf = open("./logs/ecu_" + options.log + ".txt", "at")
self.lf = open("./logs/elm_" + options.log + ".txt", "at", encoding="utf-8")
self.vf = open("./logs/ecu_" + options.log + ".txt", "at", encoding="utf-8")

self.lastCMDtime = 0
self.ATCFC0 = options.opt_cfc0
Expand Down