Skip to content

Commit f07fcbe

Browse files
fix(examples): Fix example build errors caused by the deep_sleep funcs are returnable
1 parent 28aec95 commit f07fcbe

File tree

2 files changed

+2
-0
lines changed
  • examples

2 files changed

+2
-0
lines changed

examples/bluetooth/nimble/throughput_app/blecent_throughput/components/cmd_system/cmd_system.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ static int deep_sleep(int argc, char **argv)
225225
rtc_gpio_isolate(GPIO_NUM_12);
226226
#endif
227227
esp_deep_sleep_start();
228+
return 1;
228229
}
229230

230231
static void register_deep_sleep(void)

examples/system/console/advanced/components/cmd_system/cmd_system_sleep.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ static int deep_sleep(int argc, char **argv)
9292
#endif //CONFIG_IDF_TARGET_ESP32
9393

9494
esp_deep_sleep_start();
95+
return 1;
9596
}
9697

9798
static void register_deep_sleep(void)

0 commit comments

Comments
 (0)