sparkfun / HTU21D_Breakout

Breakout board for the HTU21D digital humidity sensor.
Other
35 stars 22 forks source link

Missing header guards #3

Closed BrentWilkins closed 7 years ago

nseidle commented 9 years ago

Hey Brent - can you tell me more? What are header guards?

BrentWilkins commented 9 years ago

Quickly, they prevent a header from being included more than once causing symbol redefinitions. You can find more info here: https://en.wikipedia.org/wiki/Include_guard It appears that many of your headers are missing them. I first noticed it due to this pull request to fix another one: https://github.com/sparkfun/SparkFun_MPL3115A2_Breakout_Arduino_Library/pull/1

nseidle commented 7 years ago

Got it. Should be fixed in next push.