diff --git a/Firmware/src/main.cpp b/Firmware/src/main.cpp index c4a80eb..b03a869 100644 --- a/Firmware/src/main.cpp +++ b/Firmware/src/main.cpp @@ -43,7 +43,7 @@ #define NSS PIN_B1 RFM95 rfm(DIO0,NSS); LoRaWAN lora = LoRaWAN(rfm); -unsigned int Frame_Counter_Tx = 0x0000; +uint16_t Frame_Counter_Tx = 0x0000; // If set LED will blink when sending #define LED_PIN PIN_A7 @@ -52,7 +52,7 @@ unsigned int Frame_Counter_Tx = 0x0000; BME280 sensor; // Global Variable used for deep sleep -unsigned int sleep_interval; +uint16_t sleep_interval; // Sleep Time (s) Between Two Measurements #define SLEEP_TIME 528 @@ -65,14 +65,15 @@ void init_wdt() // Start timed sequence // Set Watchdog Change Enable bit WDTCSR |= (1<