diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2024-07-31 21:26:10 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2024-07-31 21:26:10 -0400 |
commit | cb15d0fec69317ed2023dd8aad19f749f527fe77 (patch) | |
tree | 30a29a7abe2765f9cc8438a4b838269c49aadcd7 /klippy/extras/load_cell.py | |
parent | 055f07c6389fdae1be0ecafbe5b114ab08813fdd (diff) | |
download | kutter-cb15d0fec69317ed2023dd8aad19f749f527fe77.tar.gz kutter-cb15d0fec69317ed2023dd8aad19f749f527fe77.tar.xz kutter-cb15d0fec69317ed2023dd8aad19f749f527fe77.zip |
load_cell: Don't start sensor on startup
Also, don't report an empty status.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/load_cell.py')
-rw-r--r-- | klippy/extras/load_cell.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/klippy/extras/load_cell.py b/klippy/extras/load_cell.py index f6725d18..14f3c298 100644 --- a/klippy/extras/load_cell.py +++ b/klippy/extras/load_cell.py @@ -11,11 +11,6 @@ class LoadCell: def __init__(self, config, sensor): self.printer = printer = config.get_printer() self.sensor = sensor # must implement BulkAdcSensor - # startup, when klippy is ready, start capturing data - printer.register_event_handler("klippy:ready", self._handle_ready) - - def _handle_ready(self): - self.sensor.add_client(self._on_sample) def _on_sample(self, msg): return True @@ -23,9 +18,6 @@ class LoadCell: def get_sensor(self): return self.sensor - def get_status(self, eventtime): - return {} - def load_config(config): # Sensor types sensors = {} |