mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
fix(examples): Fix example build errors caused by the deep_sleep funcs are returnable
This commit is contained in:
parent
28aec9594a
commit
f07fcbed8d
@ -225,6 +225,7 @@ static int deep_sleep(int argc, char **argv)
|
|||||||
rtc_gpio_isolate(GPIO_NUM_12);
|
rtc_gpio_isolate(GPIO_NUM_12);
|
||||||
#endif
|
#endif
|
||||||
esp_deep_sleep_start();
|
esp_deep_sleep_start();
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void register_deep_sleep(void)
|
static void register_deep_sleep(void)
|
||||||
|
@ -92,6 +92,7 @@ static int deep_sleep(int argc, char **argv)
|
|||||||
#endif //CONFIG_IDF_TARGET_ESP32
|
#endif //CONFIG_IDF_TARGET_ESP32
|
||||||
|
|
||||||
esp_deep_sleep_start();
|
esp_deep_sleep_start();
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void register_deep_sleep(void)
|
static void register_deep_sleep(void)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user