milesburton / Arduino-Temperature-Control-Library

Arduino Temperature Library
https://www.milesburton.com/w/index.php/Dallas_Temperature_Control_Library
973 stars 487 forks source link

Moved the header include below "Arduino.h" #256

Open gkostov opened 1 week ago

gkostov commented 1 week ago

In Arduino environment DallasTemperature.h needs Arduino.h to have been included in front of it (or the compiler complains about "size_t" not being a type). In smaller simple projects one is usually lucky to have it already included. But with a more complex setup the part

#elif ARDUINO >= 100
#include "Arduino.h"

becomes important.

Cheers