Document and test the LineSensor class properly. Multi-sensor devices
can wait for now.
This commit is contained in:
Dave Jones
2016-04-02 18:30:47 +01:00
parent a59f8f6b35
commit 23a63697b6
4 changed files with 80 additions and 13 deletions

View File

@@ -51,7 +51,6 @@ class GPIOQueue(GPIOThread):
def __init__(
self, parent, queue_len=5, sample_wait=0.0, partial=False,
average=median):
assert isinstance(parent, GPIODevice)
assert callable(average)
super(GPIOQueue, self).__init__(target=self.fill)
if queue_len < 1: