pgii / GyroMocapUE4

Simple Motion Capture based on gyro MPU-9250 and ESP32 in Unreal Engine
99 stars 29 forks source link

Error trying to compile to ESP32 DevKitC #8

Open EngenheiroGamer opened 2 years ago

EngenheiroGamer commented 2 years ago

When I compile this code to my ESP32 the following error appears:

In file included from C:\Users\User\Documents\GyroMocapUE4-master\GyroMocapUE4-master\GyroSensor_MPU9250_ESP32\GyroSensor_MPU9250_ESP32.ino:3: C:\Users\Pedro\Documents\GyroMocapUE4-master\GyroMocapUE4-master\GyroSensor_MPU9250_ESP32\MPU9250_9Axis.h:683:2: error: #endif without #if

endif / _MPU9250_9AXIS_MOTIONAPPS41H /

^~~~~

First It won't recognize I2CDev Library if it isn't in the same folder as the Top Level. Then this error start showing after I add it to the top level's folder.

ewecan commented 1 year ago

Replace it with this: #ifdef MPU9250_9AXIS_MOTIONAPPS41_H