sparkfun / SparkFun_BNO080_Arduino_Library

An Arduino Library for the BNO080 IMU combination triple axis accelerometer/gyro/magnetometer packaged with an ARM Cortex M0+ running powerful algorithms.
Other
77 stars 62 forks source link

NULL compilation warning #25

Closed MichaelPriven closed 5 years ago

MichaelPriven commented 5 years ago

Hi,

I suggest to change ...uint8_t intPin = NULL to uint8_t intPin = 255 to avoid compilation warning / error (in new version of Arduino IDE)

Thanks Michael

nseidle commented 5 years ago

Thanks! What microcontroller are you using? What version of the IDE are you using? I can't replicate on Uno or Artemis in Arduino v1.8.9.

MichaelPriven commented 5 years ago

I'm using Arduino Mega, with V1.8.9 or visual studio with visual micro

nseidle commented 5 years ago

Oddly I can't replicate. Windows 10, Arduino v1.8.9. Have you modified your platforms.txt? It sounds like the warnings on Arduino have been tweaked up in your version.

Regardless, I've changed the problem line of code and should roll with then next lib version.

Thanks for reporting!