Skip to content

Commit 55d7a27

Browse files
authored
Update ICM_20948_C.h - add ifndef PORTDUINO to fix compilation
1 parent 9caa80c commit 55d7a27

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/util/ICM_20948_C.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ extern "C"
2222
{
2323
#endif /* __cplusplus */
2424

25+
// Portduino target uses system memcmp call, which conflicts with this
26+
#ifndef PORTDUINO
2527
extern int memcmp(const void *, const void *, size_t); // Avoid compiler warnings
28+
#endif
2629

2730
// Define if the DMP will be supported
2831
// Note: you must have 14290/14301 Bytes of program memory available to store the DMP firmware!

0 commit comments

Comments
 (0)