From d521b7d52a0f6df19b6aa0826747d2c367660c49 Mon Sep 17 00:00:00 2001 From: KonstantinKondrashov Date: Mon, 17 Jul 2023 16:41:39 +0800 Subject: [PATCH] fix(examples): Fix example build errors caused by the deep_sleep funcs are returnable --- .../blecent_throughput/components/cmd_system/cmd_system.c | 1 + .../system/console/advanced/components/cmd_system/cmd_system.c | 1 + 2 files changed, 2 insertions(+) diff --git a/examples/bluetooth/nimble/throughput_app/blecent_throughput/components/cmd_system/cmd_system.c b/examples/bluetooth/nimble/throughput_app/blecent_throughput/components/cmd_system/cmd_system.c index 3878a51fa2..01bea4c2af 100644 --- a/examples/bluetooth/nimble/throughput_app/blecent_throughput/components/cmd_system/cmd_system.c +++ b/examples/bluetooth/nimble/throughput_app/blecent_throughput/components/cmd_system/cmd_system.c @@ -225,6 +225,7 @@ static int deep_sleep(int argc, char **argv) rtc_gpio_isolate(GPIO_NUM_12); #endif esp_deep_sleep_start(); + return 1; } static void register_deep_sleep(void) diff --git a/examples/system/console/advanced/components/cmd_system/cmd_system.c b/examples/system/console/advanced/components/cmd_system/cmd_system.c index 58b94a5970..fcb9624488 100644 --- a/examples/system/console/advanced/components/cmd_system/cmd_system.c +++ b/examples/system/console/advanced/components/cmd_system/cmd_system.c @@ -273,6 +273,7 @@ static int deep_sleep(int argc, char **argv) #endif //CONFIG_IDF_TARGET_ESP32 esp_deep_sleep_start(); + return 1; } static void register_deep_sleep(void)