conurb / low_energy_sensor

ATtiny85 with a BME280 sensor in I2C (mimics an Oregon Scientific sensor)
GNU General Public License v3.0
9 stars 6 forks source link

Compilation Error #1

Closed zebons closed 4 years ago

zebons commented 5 years ago

Hi, I have an error when compiling the code :

Z:\Arduino\low_energy_sensor-master\low_energy_sensor\low_energy_sensor.ino: In function 'void mcu_set_watchdog()':

low_energy_sensor:45:3: error: 'WDTCR' was not declared in this scope

   WDTCR |= (1 << WDCE) | (1 << WDE);   // Watchdog Timer Prescale (DS 8.4.1.2 & 8.5.2)

   ^

exit status 1
'WDTCR' was not declared in this scope

What is wrong ?

[Update] : Sorry it's my fault... I don't see that I was with a wrong board selected. No issue with the right card. You can close that issue