mirror of https://github.com/efabless/caravel.git
Changed int (truncate) to round to correct gpio_default error. (#83)
This commit is contained in:
parent
562405a302
commit
da3f77d680
|
@ -189,8 +189,8 @@ if __name__ == '__main__':
|
||||||
one_string = []
|
one_string = []
|
||||||
|
|
||||||
for i in range(0, 13):
|
for i in range(0, 13):
|
||||||
llx_zero = int(via_pos[i][0] * 200)
|
llx_zero = round(via_pos[i][0] * 200)
|
||||||
lly_zero = int(via_pos[i][1] * 200)
|
lly_zero = round(via_pos[i][1] * 200)
|
||||||
urx_zero = llx_zero + 34
|
urx_zero = llx_zero + 34
|
||||||
ury_zero = lly_zero + 34
|
ury_zero = lly_zero + 34
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue