Skip to content

Commit 89f7ab0

Browse files
authored
Update camera.cpp
1 parent 1c3150f commit 89f7ab0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/Camera/src/camera.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ int Camera::grabFrame(FrameBuffer &fb, uint32_t timeout)
605605

606606
HAL_DCMI_Suspend(&hdcmi);
607607

608-
#ifndef ARDUINO_PORTENTA_H7_M4 // do not invalidate if Portenta M4 Core
608+
#if defined(__CORTEX_M7) // only invalidate buffer for Cortex M7
609609
// Invalidate buffer after DMA transfer.
610610
SCB_InvalidateDCache_by_Addr((uint32_t*) framebuffer, framesize);
611611
#endif

0 commit comments

Comments
 (0)