Skip to content

Always include Arduino.h#58

Open
daradib wants to merge 2 commits intoadafruit:masterfrom
daradib:arduinoh
Open

Always include Arduino.h#58
daradib wants to merge 2 commits intoadafruit:masterfrom
daradib:arduinoh

Conversation

@daradib
Copy link

@daradib daradib commented Jan 11, 2025

Adafruit_Sensor.printSensorDetails() uses Serial.print, Serial.println, and F, which are specific to Arduino and Arduino-compatible libraries. When building for a compatible platform like Particle, ARDUINO is not defined, but Arduino.h (or Particle.h) is available.

@daradib
Copy link
Author

daradib commented Jan 11, 2025

It looks like the failed check is caused by an unrelated change in the newer version of clang-format included in Ubuntu 24.04 (previous checks ran on Ubuntu 22.04).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant