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)