소스 검색

fix(examples): Fix example build errors caused by the deep_sleep funcs are returnable

KonstantinKondrashov 2 년 전
부모
커밋
f07fcbed8d

+ 1 - 0
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)

+ 1 - 0
examples/system/console/advanced/components/cmd_system/cmd_system_sleep.c

@@ -92,6 +92,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)