bmp280 changes

This commit is contained in:
2019-11-09 14:39:23 +01:00
parent a109991e7a
commit dbf9adcde8
4 changed files with 9 additions and 10 deletions

View File

@ -18,7 +18,7 @@
EMPTY_INTERRUPT(WDT_OVERFLOW_vect);
static constexpr uint8_t id = 3;
static constexpr uint8_t id = 4;
static constexpr bool WATCH_DOOR = false;
static constexpr bool BMP_280 = false;
static constexpr bool DHT22 = true;
@ -93,8 +93,7 @@ int main()
if constexpr (DHT22)
{
debugBlink(false);
uint8_t readret;
readret = tempSensor.read();
tempSensor.read();
paket[0] = 1;
paket[2] = tempSensor.temperature >> 8;
paket[3] = tempSensor.temperature;
@ -117,7 +116,7 @@ int main()
debugBlink(false);
paket[0] = 128;
paket[2] = 0;
paket[3] = 1;
paket[3] = id;
transmiter.sendPacket(paketUint);
}