SparkFun_MPU-9250-DMP_Arduino_Library icon indicating copy to clipboard operation
SparkFun_MPU-9250-DMP_Arduino_Library copied to clipboard

When loading the sparkfun_mpu-9250-dmp_arduino_library library with platformio, the min function was not found

Open woody5418 opened this issue 4 years ago • 1 comments

The problem has been solved by itself, and I would like to add the following macro definition to "/ SRC /util/inv_mpu.c", which is compatible with other platforms' support for this code.

#include <Arduino.h> #ifndef min
#define min _min
#endif
#define MPU9250

woody5418 avatar Mar 11 '20 03:03 woody5418

Thank you, resolved build issue on ESP32 for me. .

1larity avatar Nov 28 '21 09:11 1larity