Skip to content

Commit e949922

Browse files
authored
Moved the header include below "Arduino.h"
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)
1 parent 65112b5 commit e949922

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DallasTemperature.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
// License as published by the Free Software Foundation; either
44
// version 2.1 of the License, or (at your option) any later version.
55

6-
#include "DallasTemperature.h"
7-
86
// for Particle support
97
// yield() is not a standard function, but instead wraps Particle process
108
// https://community.particle.io/t/syscall-yield-operation/40708/2
@@ -20,6 +18,8 @@ extern "C" {
2018
}
2119
#endif
2220

21+
#include "DallasTemperature.h"
22+
2323
// OneWire commands
2424
#define STARTCONVO 0x44 // Tells device to take a temperature reading and put it on the scratchpad
2525
#define COPYSCRATCH 0x48 // Copy scratchpad to EEPROM

0 commit comments

Comments
 (0)