1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

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

This commit is contained in:
Daniel Krebs 2018-01-31 12:31:37 +01:00 committed by Steffen Vogel
parent 44ad827121
commit be3538f697

View file

@ -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