mirror of
https://github.com/Klipper3d/klipper.git
synced 2026-02-07 16:50:54 -07:00
load_cell_probe: Pass probe_offsets to TapSession()
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
8c2c90b8d6
commit
f33c76da22
1 changed files with 5 additions and 2 deletions
|
|
@ -544,9 +544,11 @@ class TappingMove:
|
|||
|
||||
# ProbeSession that implements Tap logic
|
||||
class TapSession:
|
||||
def __init__(self, config, tapping_move, probe_params_helper):
|
||||
def __init__(self, config, tapping_move,
|
||||
probe_offsets, probe_params_helper):
|
||||
self._printer = config.get_printer()
|
||||
self._tapping_move = tapping_move
|
||||
self._probe_offsets = probe_offsets
|
||||
self._probe_params_helper = probe_params_helper
|
||||
# Session state
|
||||
self._results = []
|
||||
|
|
@ -632,7 +634,8 @@ class LoadCellPrinterProbe:
|
|||
continuous_tare_filter_helper, config_helper)
|
||||
self._tapping_move = TappingMove(config, load_cell_probing_move,
|
||||
config_helper)
|
||||
tap_session = TapSession(config, self._tapping_move, self._param_helper)
|
||||
tap_session = TapSession(config, self._tapping_move,
|
||||
self._probe_offsets, self._param_helper)
|
||||
self._probe_session = probe.ProbeSessionHelper(config,
|
||||
self._param_helper, tap_session.start_probe_session)
|
||||
# printer integration
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue