aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/angle.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2024-04-14 12:39:27 -0400
committerKevin O'Connor <kevin@koconnor.net>2024-04-20 12:52:47 -0400
commit819599362cad73316759e003b048545d09258a54 (patch)
treefaa974930f5e3eecbb751baae3faccfd885407e1 /klippy/extras/angle.py
parentabb79103162af2b7437c7a82f1c88d7fb1abfb68 (diff)
downloadkutter-819599362cad73316759e003b048545d09258a54.tar.gz
kutter-819599362cad73316759e003b048545d09258a54.tar.xz
kutter-819599362cad73316759e003b048545d09258a54.zip
bulk_sensor: Rename BulkDataQueue methods
Rename pull_samples() to pull_queue() and rename clear_sample() to clear_queue(). This avoids confusion between the queue of response messages and the larger list of samples stored within those messages. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/angle.py')
-rw-r--r--klippy/extras/angle.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/klippy/extras/angle.py b/klippy/extras/angle.py
index 23f402a7..c51d8bf0 100644
--- a/klippy/extras/angle.py
+++ b/klippy/extras/angle.py
@@ -529,7 +529,7 @@ class Angle:
logging.info("Starting angle '%s' measurements", self.name)
self.sensor_helper.start()
# Start bulk reading
- self.bulk_queue.clear_samples()
+ self.bulk_queue.clear_queue()
self.last_sequence = 0
systime = self.printer.get_reactor().monotonic()
print_time = self.mcu.estimated_print_time(systime) + MIN_MSG_TIME
@@ -541,13 +541,13 @@ class Angle:
def _finish_measurements(self):
# Halt bulk reading
self.query_spi_angle_cmd.send_wait_ack([self.oid, 0, 0, 0])
- self.bulk_queue.clear_samples()
+ self.bulk_queue.clear_queue()
self.sensor_helper.last_temperature = None
logging.info("Stopped angle '%s' measurements", self.name)
def _process_batch(self, eventtime):
if self.sensor_helper.is_tcode_absolute:
self.sensor_helper.update_clock()
- raw_samples = self.bulk_queue.pull_samples()
+ raw_samples = self.bulk_queue.pull_queue()
if not raw_samples:
return {}
samples, error_count = self._extract_samples(raw_samples)