File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55
66#include " DallasTemperature.h"
77
8- #if ARDUINO >= 100
8+ // for Particle support
9+ // yield() is not a standard function, but instead wraps Particle process
10+ // https://community.particle.io/t/syscall-yield-operation/40708/2
11+ #if defined(PLATFORM_ID) // Only defined if a Particle device
12+ inline void yield () {
13+ Particle.process ();
14+ }
15+ #elif ARDUINO >= 100
916#include " Arduino.h"
1017#else
1118extern " C" {
@@ -139,7 +146,7 @@ uint8_t DallasTemperature::getDS18Count(void) {
139146
140147// returns true if address is valid
141148bool DallasTemperature::validAddress (const uint8_t * deviceAddress) {
142- return (_wire->crc8 (deviceAddress, 7 ) == deviceAddress[DSROM_CRC]);
149+ return (_wire->crc8 (( uint8_t *) deviceAddress, 7 ) == deviceAddress[DSROM_CRC]);
143150}
144151
145152// finds an address at a given index on the bus
You can’t perform that action at this time.
0 commit comments