adafruit / Adafruit_TSL2561

Unified sensor driver for Adafruit's TSL2561 breakouts
87 stars 77 forks source link

Pgmspace warnings with Teensy's #8

Closed mjs513 closed 7 years ago

mjs513 commented 7 years ago

Using Arduino IDE 1.8.4 with Teensyduino 1.39 beta1 (happens with other versions as well). Compiling for Teensy 3.5. When compiling receiving warnings on pgmspace macros being redefined. Example sketch does run no problem even with the warnings.

Recommend changing line 25 in the .cpp file to:

#elif !defined(TEENSYDUINO)

to avoid the unnecessary warnings. There maybe a better way but this worked for me.

Respectfully Mike

mjs513 commented 7 years ago

Just submitted a pull request for this as well as other changes