Skip to content

Commit

Permalink
[Bugfix] Don't Home when checking all corners.
Browse files Browse the repository at this point in the history
Signed-off-by: Juri Berlanda <[email protected]>
  • Loading branch information
j-be committed May 12, 2023
1 parent 3764568 commit a965802
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions octoprint_autobim/autobim.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,6 @@ def on_test_point(self, point):
return result.has_value()

def on_test_points(self, point_list):
self._printer.home(['x', 'y', 'z'])

results = []
self._logger.info("PointList: %s" % str(point_list))
for point in point_list:
Expand Down
2 changes: 1 addition & 1 deletion tests/autobim_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ def test_test_points(plugin):
plugin.process_gcode(None, "ok")
sleep(0.01)

assert plugin._printer.sent_commands == ["G28 ['x', 'y', 'z']", 'G30 X1 Y2', 'G30 X2 Y3']
assert plugin._printer.sent_commands == ['G30 X1 Y2', 'G30 X2 Y3']
assert plugin._plugin_manager.sent_messages == [
{'message': 'Point X1 Y2 seems to work fine', 'type': 'info'},
{'message': 'Point X2 Y3 seems to be unreachable!', 'type': 'error'},
Expand Down

0 comments on commit a965802

Please sign in to comment.