Skip to content

Commit 4530550

Browse files
committed
Convert motion_detected from method to property
1 parent 780bdef commit 4530550

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

adafruit_vc0706.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,9 @@ def read_picture_into(self, buf):
214214
buf[i] = self._buffer[i]
215215
return n
216216

217+
@property
217218
def motion_detected(self):
218-
"""Read the gesture detection result"""
219+
"""Whether a gesture was detected"""
219220
self._read_response(self._buffer, len(self._buffer))
220221
if not self._verify_response(_COMM_MOTION_DETECTED):
221222
return False

0 commit comments

Comments
 (0)