Skip to content

Commit bded268

Browse files
authored
Merge pull request #156 from meshtastic/main
Update ICM_20948_C.h - add ifndef PORTDUINO to fix compilation
2 parents 9caa80c + 55d7a27 commit bded268

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/util/ICM_20948_C.h

+3
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)