Skip to content

Commit 307ea7c

Browse files
committed
RP2 DVP PIO driver: Disable DMA in active()
Fixes #28
1 parent 3e57d35 commit 307ea7c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cv2_drivers/cameras/dvp_rp2_pio.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ def active(self, active = None):
7676
if active == None:
7777
return self.sm.active()
7878

79+
# Disable the DMA, the VSYNC handler will re-enable it when needed
80+
self.dma.active(False)
81+
7982
# Set the active state of the state machine
8083
self.sm.active(active)
8184

0 commit comments

Comments
 (0)