SparkFun_MPU-9250-DMP_Arduino_Library
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
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
Thank you, resolved build issue on ESP32 for me. .