mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-10-29 17:50:37 +00:00
Tidy up
This commit is contained in:
@@ -82,10 +82,8 @@ class GPIOQueue(GPIOThread):
|
||||
|
||||
def fill(self):
|
||||
try:
|
||||
while (
|
||||
not self.stopping.wait(self.sample_wait) and
|
||||
len(self.queue) < self.queue.maxlen
|
||||
):
|
||||
while (not self.stopping.wait(self.sample_wait) and
|
||||
len(self.queue) < self.queue.maxlen):
|
||||
self.queue.append(self.parent._read())
|
||||
if self.partial:
|
||||
self.parent._fire_events()
|
||||
@@ -96,4 +94,3 @@ class GPIOQueue(GPIOThread):
|
||||
except ReferenceError:
|
||||
# Parent is dead; time to die!
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user