I've been using Atmel 7 + beta plugin and started to have problems with an open source library that previously worked with 6.2. Moreover, the compile results are seemingly erratic (to my relatively untrained eye
)
The output below is based on example code that comes with the Dallas Temperature library. I've gotten the same results with the MAX31850_Dallas Temp library. Seeing this with other code that previously compiled/ran, thought using examples provided by library would take my coding errors out of the equation.
I greatly appreciate any help. Please lemmi know what other information is needed to get this resolved. Many thanks.....jim
Dallas Temperature library
Tester example program
Compiler warnings on,
Off: auto debug, tutorial mode, verbose messaging
Build completes with one warning:
Compiling 'Tester' for 'Arduino/Genuino Mega w/ ATmega2560 (Mega 2560)'
DallasTemperature.cpp:In member function 'float DallasTemperature::calculateTemperature(uint8_t*, uint8_t*)
DallasTemperature.cpp:456:1: warning: control reaches end of non-void function [-Wreturn-type]
Binary sketch size: 8,466 bytes (used 3% of a 253,952 byte maximum) (0.66 secs)
Minimum Memory Usage: 585 bytes (7% of a 8192 byte maximum)
Turned on auto debug and build has errors:
Compiling debug version of 'Tester' for 'Arduino/Genuino Mega w/ ATmega2560 (Mega 2560)'
DallasTemperature.cpp:In member function 'float DallasTemperature::calculateTemperature(uint8_t*, uint8_t*)
DallasTemperature.cpp:456:1: warning: control reaches end of non-void function [-Wreturn-type]
Tester.pde:5:23: error: variable or field 'printTemperature' declared void
:void printTemperature(DeviceAddress deviceAddress)
Tester.pde:5:23: error: 'DeviceAddress' was not declared in this scope
Tester.pde:7:19: error: variable or field 'printAddress' declared void
:void printAddress(DeviceAddress deviceAddress)
Tester.pde:7:19: error: 'DeviceAddress' was not declared in this scope
Tester.pde:In function 'void setup()
Tester.pde:51:31: error: 'printAddress' was not declared in this scope
:printAddress(tempDeviceAddress)
Error compiling project sources
Note: solution cleaned between tests above. Also, isn’t always consistent. E.g. sometimes turning on tutorial mode produces the same issue.