Skip to content

Commit

Permalink
Update gencode.py
Browse files Browse the repository at this point in the history
Signed-off-by: Rule Timothy (VM/EMT3) <[email protected]>
  • Loading branch information
Kiran Gowda Kempanna authored and timrulebosch committed May 6, 2024
1 parent a766a04 commit 4ec7823
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ tasks:
sh: basename {{.DBCFILE}} .dbc
OUTDIR: '{{.OUTDIR | default "OUTDIR_NOT_SPECIFIED"}}'
FILTER: '{{if .FILTER}}--filter {{.FILTER}}{{else}}{{end}}'
CYCLE_TIME: '{{if .CYCLE_TIME}}--cycle_time {{.CYCLE_TIME}}{{else}}{{end}}'
CYCLE_TIME: "{{if .CYCLE_TIME}}--cycle_time '{{.CYCLE_TIME}}'{{else}}{{end}}"
IMAGE: '{{.IMAGE | default .NETWORK_IMAGE}}'
TAG: '{{.TAG | default .NETWORK_TAG}}'
cmds:
Expand Down
2 changes: 1 addition & 1 deletion extra/tools/network/build/package/gencode.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def scan_messages(dbc_file, out_path, filter, cycle_time):
'is_container': isContainer
}
if str(message.frame_id) in cycle_time.keys():
frames[messageName]['cycle_time_ms'] = cycle_time[str(message.frame_id)]
frames[messageName]['cycle_time_ms'] = int(cycle_time[str(message.frame_id)])
if isContainer :
for mux_id, signals in message.signal_tree[0]['Header_ID'].items():
frames[messageName + '_' + hex(mux_id)] = {
Expand Down

0 comments on commit 4ec7823

Please sign in to comment.