Skip to content

Commit

Permalink
UDS: Fix Write Data by Address (commaai#2023)
Browse files Browse the repository at this point in the history
  • Loading branch information
pd0wm authored Sep 16, 2024
1 parent 8545c68 commit 2526d1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/uds.py
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ def write_memory_by_address(self, memory_address: int, memory_size: int, data_re
data += struct.pack('!I', memory_size)[4 - memory_size_bytes:]

data += data_record
self._uds_request(SERVICE_TYPE.WRITE_MEMORY_BY_ADDRESS, subfunction=0x00, data=data)
self._uds_request(SERVICE_TYPE.WRITE_MEMORY_BY_ADDRESS, subfunction=None, data=data)

def clear_diagnostic_information(self, dtc_group_type: DTC_GROUP_TYPE):
data = struct.pack('!I', dtc_group_type)[1:] # 3 bytes
Expand Down

0 comments on commit 2526d1e

Please sign in to comment.