We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1258938 commit c64a5c0Copy full SHA for c64a5c0
scripts/make.sh
@@ -2,7 +2,7 @@
2
3
SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
4
5
-TARGET=$SCRIPTPATH/../src/examples/mqtt_polling/mqtt_polling.ino
+TARGET=$SCRIPTPATH/../src/examples/low_power/low_power.ino
6
EXTRA_ARGS=--clean
7
8
if [ "$1" = "clean" ]; then
src/low_power.cpp
@@ -119,6 +119,8 @@ static uint16_t decodeSleepMultiplier(const SleepMultiplier sleep_multiplier) {
119
return 30;
120
case SleepMultiplier::TWO_SECONDS:
121
return 2;
122
+ default:
123
+ return 0;
124
}
125
126
@@ -453,4 +455,6 @@ SleepStatusCode LowPowerClass::sleep(const SleepMode sleep_mode) {
453
455
case SleepMode::DEEP:
454
456
return deepSleep();
457
458
+
459
+ return SleepStatusCode::OK;
460
0 commit comments