ZZ-Cat / CRSFforArduino

An Arduino Library for communicating with ExpressLRS and TBS Crossfire receivers.
GNU Affero General Public License v3.0
162 stars 27 forks source link

Manually point Arduino IDE to Compatibility Table location #21

Closed ZZ-Cat closed 1 year ago

ZZ-Cat commented 1 year ago

Overview

This Pull Request fixes #20 (as discussed in #19).

What's changed

I had to add in some preprocessor statements to differentiate between how PlatformIO sees files & how the Arduino IDE sees files. This results in two seperate includes for the Compatibility Table, based on what is being used to build a project that uses CRSF for Arduino. This is completely transparent to the developer.

Additional

I also added in two more preprocessor statements to provide appropriate warnings in the compiler, when CRSF for Arduino is being compiled for incompatible hardware.

This warning will not flag as a compilation error.