I’m trying to move Mav2Duplex that I forked into PlatformIO. I’m having an issue building this code because of a check for a define that is now occurring out of order. The following code trips the #error directive:
// disable the stock Arduino serial driver
# error Must include disableserial.h before the Arduino serial driver is defined.
How do I control the build process so this doesn’t fail?
lib_ldf_mode = off doesn’t solve this. Thanks!