Remove warning of track space and floor the space function.

This commit is contained in:
Matt Guthaus 2018-10-20 11:53:52 -07:00
parent a1f2a5befe
commit f9738253c6
1 changed files with 1 additions and 2 deletions

View File

@ -277,8 +277,7 @@ class supply_router(router):
self.supply_rail_wire_width = self.supply_rail_width - space_tracks
debug.info(1,"Rail wire tracks: {}".format(self.supply_rail_wire_width))
total_space = self.supply_rail_width - self.supply_rail_wire_width
debug.check(total_space % 2 == 0, "Asymmetric wire track spacing...")
self.supply_rail_space_width = int(0.5*total_space)
self.supply_rail_space_width = math.floor(0.5*total_space)
debug.info(1,"Rail space tracks: {} (on both sides)".format(self.supply_rail_space_width))