Skip to content

Commit 0d864eb

Browse files
author
CK1
committed
disableDeepSleep moved
1 parent 359394f commit 0d864eb

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/main.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@ void interruptDoorFunction() // Interrupt Function for DoorSwitch
2424
void CheckDoorStateAndSendLoraPackage()
2525
{
2626
if (watchdog == 0) // Real Alarm?
27-
{
28-
disableDeepSleep();
29-
// setTX_Interval(10); // Try to send Lora Package during the next n seconds
30-
27+
{
3128
// Queue Lora Package
3229
LoRaWANDo_send(&sendjob);
3330

@@ -50,6 +47,7 @@ void setup()
5047
Setup_Pins();
5148
Blink_Info_LED(50, 15); // LED blink (The LED can only be used once at the beginning due to SPI PIN/collision)
5249
LoRaWANSetup();
50+
disableDeepSleep(); //DeepSleep Disable
5351

5452
attachInterrupt(digitalPinToInterrupt(PIN_DOOR_SWITCH), interruptDoorFunction, FALLING); // Interrupt Function for DoorSwitch
5553
}

0 commit comments

Comments
 (0)