From 246d083a8c607e5a583560101fdceef1977822f9 Mon Sep 17 00:00:00 2001 From: richonguzman Date: Thu, 21 Sep 2023 19:16:52 -0300 Subject: [PATCH] more adds --- src/lora_utils.cpp | 2 ++ src/msg_utils.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lora_utils.cpp b/src/lora_utils.cpp index 0db9ca2..f7333ce 100644 --- a/src/lora_utils.cpp +++ b/src/lora_utils.cpp @@ -21,10 +21,12 @@ namespace LoRa_Utils { void setFlag(void) { Serial.println("setFlag"); + #if defined(TTGO_T_Beam_V1_0_SX1268) if (!enableInterrupt) { // check if the interrupt is enabled return; } transmissionFlag = true; // we got a packet, set the flag + #endif } void setup() { diff --git a/src/msg_utils.cpp b/src/msg_utils.cpp index 92f9e73..7e2ffcb 100644 --- a/src/msg_utils.cpp +++ b/src/msg_utils.cpp @@ -97,7 +97,7 @@ namespace MSG_Utils { void ledNotification() { uint32_t ledTimeDelta = millis() - messageLedTime; - if (messageLed && ledTimeDelta > 10*1000) { + if (messageLed && ledTimeDelta > 5*1000) { digitalWrite(Config.notification.ledMessagePin, HIGH); messageLedTime = millis(); }