Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 89f7ab0

Browse files
authoredJun 27, 2022
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

+1-1
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)
Please sign in to comment.