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:
parent
44ad827121
commit
be3538f697
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue