Skip to content

Commit

Permalink
disableDeepSleep moved
Browse files Browse the repository at this point in the history
  • Loading branch information
CK1 committed Jun 9, 2022
1 parent 359394f commit 0d864eb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ void interruptDoorFunction() // Interrupt Function for DoorSwitch
void CheckDoorStateAndSendLoraPackage()
{
if (watchdog == 0) // Real Alarm?
{
disableDeepSleep();
// setTX_Interval(10); // Try to send Lora Package during the next n seconds

{
// Queue Lora Package
LoRaWANDo_send(&sendjob);

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

attachInterrupt(digitalPinToInterrupt(PIN_DOOR_SWITCH), interruptDoorFunction, FALLING); // Interrupt Function for DoorSwitch
}
Expand Down

0 comments on commit 0d864eb

Please sign in to comment.