Skip to content

Commit e2b9a79

Browse files
authored
Didn't have all the flake8 checkers installed
1 parent a0981fc commit e2b9a79

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

buildhat/wedo.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ class MotionSensor(Device):
3535
:param port: Port of device
3636
:raises DeviceError: Occurs if there is no motion sensor attached to port
3737
"""
38+
3839
default_mode = 0
3940

4041
def __init__(self, port):
@@ -48,8 +49,9 @@ def __init__(self, port):
4849

4950
def set_default_data_mode(self, mode):
5051
"""
51-
Set the mode most often queried from this device to significantly
52-
improve performance when repeatedly accessing data
52+
Set the mode most often queried from this device.
53+
54+
This significantly improves performance when repeatedly accessing data
5355
5456
:param mode: 0 for distance (default), 1 for movement count
5557
"""
@@ -68,9 +70,11 @@ def get_distance(self):
6870

6971
def get_movement_count(self):
7072
"""
71-
Return the movement counter: The count of how many times the sensor has
72-
detected an object that moved within 4 blocks of the sensor since the
73-
sensor has been plugged in or the BuildHAT reset
73+
Return the movement counter
74+
75+
This is the count of how many times the sensor has detected an object
76+
that moved within 4 blocks of the sensor since the sensor has been
77+
plugged in or the BuildHAT reset
7478
7579
:return: Count of objects detected
7680
:rtype: int

0 commit comments

Comments
 (0)