From cbcdc0a8a0c84f684fb0cdeb9b79e1578b1469dd Mon Sep 17 00:00:00 2001 From: Stefan Brand Date: Thu, 19 Sep 2019 10:40:46 +0200 Subject: [PATCH] Change to Longer 8s Deep Sleep Interval --- Firmware/src/main.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) 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<