78,9 → 78,9 |
sht_init(); |
MPL_init(); // get correction coefficients from the sensor |
|
// enable_interrupts(INT_TIMER1); // interrupts used for anemometer readings |
// enable_interrupts(INT_TIMER0); |
// enable_interrupts(GLOBAL); |
enable_interrupts(INT_TIMER1); // interrupts used for anemometer readings |
// enable_interrupts(INT_TIMER0); |
enable_interrupts(GLOBAL); |
|
while (TRUE) |
{ |
98,7 → 98,7 |
sht_rd(SHT_temp,SHT_hum); |
SHT_temp = (SHT_temp + 273.15)*100; |
barometer_temperature = (MPL_get_temperature() + 273.15)*100; |
barometer_pressure = MPL_get_pressure() * 10.0; // conversion to hectopascals |
barometer_pressure = MPL_get_pressure() * 10.0; // conversion to hectopascals |
|
delay_us(SEND_DELAY); |
putc('$'); |