Commit 72464a27 authored by Daniel Krebs's avatar Daniel Krebs Committed by Steffen Vogel

hwdef-parse: fix switch/num_port to be an integer

parent 594f6f83
......@@ -188,7 +188,7 @@ for busif in busifs:
ports[-1]['name'] = sanitize_name(busif_ep.get('NAME'))
# set number of master/slave port pairs for switch
ips[switch.get('INSTANCE')]['num_ports'] = switch_ports / 2
ips[switch.get('INSTANCE')]['num_ports'] = int(switch_ports / 2)
# find Interrupt assignments
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment