soc/integration/soc: add_ethernet/add_ip_constants: cast str to int (avoid double quote in soc.h
This commit is contained in:
parent
f543b18d02
commit
d32095540a
|
@ -1775,7 +1775,7 @@ class LiteXSoC(SoC):
|
||||||
assert len(_ip) == 4
|
assert len(_ip) == 4
|
||||||
for n in range(4):
|
for n in range(4):
|
||||||
assert int(_ip[n]) < 256
|
assert int(_ip[n]) < 256
|
||||||
self.add_constant(f"{name}{n+1}", _ip[n])
|
self.add_constant(f"{name}{n+1}", int(_ip[n]))
|
||||||
if local_ip:
|
if local_ip:
|
||||||
add_ip_constants("LOCALIP", local_ip)
|
add_ip_constants("LOCALIP", local_ip)
|
||||||
if remote_ip:
|
if remote_ip:
|
||||||
|
|
Loading…
Reference in New Issue