Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always include Arduino.h #58

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant