Skip to content

Commit e062662

Browse files
committed
Remove external event enum entry
1 parent 0387b0a commit e062662

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

src/examples/low_power/low_power.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ void setup() {
2727
Log.begin(115200);
2828
Log.setLogLevel(LogLevel::DEBUG);
2929

30-
// Start LTE modem, configure the power save configuration and wait until we
31-
// are connected to the operator
30+
// Configure the power save configuration, start the LTE modem and wait
31+
// until we are connected to the operator
3232
//
3333
// Here we say that we want to sleep for 30 seconds * 2 = 60 seconds each
3434
// time we invoke sleep

src/low_power.h

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,17 @@ enum class SleepMultiplier {
2020

2121
enum class WakeUpReason {
2222
// Invoked if the sleep time retrieved from the operator wasn't valid
23-
INVALID_SLEEP_TIME = 4,
23+
INVALID_SLEEP_TIME = 3,
2424

2525
// Invoked if it took so long to put the modem in sleep that it wasn't time
2626
// left for the CPU to sleep. The sleep time should be considered to be
2727
// increased.
28-
MODEM_TIMEOUT = 3,
28+
MODEM_TIMEOUT = 2,
2929

3030
// The modem went out of sleep before the total time, which may happen if
3131
// e.g. the interval of needing to send MQTT heartbeat is lower than the
3232
// sleep time.
33-
AWOKEN_BY_MODEM_PREMATURELY = 2,
34-
35-
// If some unknown external interrupt caused the CPU to wake up
36-
AWOKEN_BY_EXTERNAL_EVENT = 1,
33+
AWOKEN_BY_MODEM_PREMATURELY = 1,
3734

3835
OK = 0,
3936
};

0 commit comments

Comments
 (0)