Skip to content

Commit

Permalink
Fix infill check layer calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
spegelius committed Apr 5, 2018
1 parent c153bcc commit d0daea9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/switch_tower.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def __init__(self, logger, settings: Settings, max_slots, min_layer_h: float):
self.raft_done = False
self.raft_width = self.width + 2 * self.brim_width - 1
self.raft_height = self.wall_height * self.max_slots + 2 * self.brim_width - 0.5
self.raft_layer_height = 0.2
self.raft_layer_height = None
self.angle = 0

self.start_pos_x = None
Expand Down Expand Up @@ -971,7 +971,7 @@ def check_infill(self, layer, e_pos, extruder, z_hop):
while True:
count = 0
for s in range(layer.tower_slots):
if self.slots[s]['last_z'] < layer.z - 0.2:
if self.slots[s]['last_z'] < layer.z - layer.height:
for l in self.get_infill_lines(layer, e_pos, extruder, z_hop):
yield l
count += 1
Expand Down

0 comments on commit d0daea9

Please sign in to comment.