mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-08-07 22:14:05 -06:00
bulk_sensor: Move APIDumpHelper() from motion_report.py to bulk_sensor.py
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
f4c8f0bf88
commit
ffd44c0219
6 changed files with 104 additions and 103 deletions
|
@ -4,7 +4,7 @@
|
|||
#
|
||||
# This file may be distributed under the terms of the GNU GPLv3 license.
|
||||
import logging, time, collections, multiprocessing, os
|
||||
from . import bus, motion_report, bulk_sensor
|
||||
from . import bus, bulk_sensor
|
||||
|
||||
# ADXL345 registers
|
||||
REG_DEVID = 0x00
|
||||
|
@ -217,7 +217,7 @@ class ADXL345:
|
|||
BYTES_PER_SAMPLE)
|
||||
self.last_error_count = 0
|
||||
# API server endpoints
|
||||
self.api_dump = motion_report.APIDumpHelper(
|
||||
self.api_dump = bulk_sensor.APIDumpHelper(
|
||||
self.printer, self._api_update, self._api_startstop, API_UPDATES)
|
||||
self.name = config.get_name().split()[-1]
|
||||
wh = self.printer.lookup_object('webhooks')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue