|
1 | 1 | /* |
2 | | - * SPDX-FileCopyrightText: 2023-2024 Espressif Systems (Shanghai) CO LTD |
| 2 | + * SPDX-FileCopyrightText: 2023-2025 Espressif Systems (Shanghai) CO LTD |
3 | 3 | * |
4 | 4 | * SPDX-License-Identifier: Unlicense OR CC0-1.0 |
5 | 5 | */ |
@@ -38,9 +38,13 @@ static int process_sleep(int argc, char **argv) |
38 | 38 |
|
39 | 39 | if (sleep_args.mode->count == 1) { |
40 | 40 | if (sleep_args.mode->ival[0] == 0) { |
| 41 | + ESP_LOGI(TAG, "enter light sleep"); |
| 42 | + fflush(stdout); |
| 43 | + fsync(fileno(stdout)); |
41 | 44 | esp_light_sleep_start(); |
42 | | - ESP_LOGI(TAG, "esp_light_sleep_start"); |
| 45 | + ESP_LOGI(TAG, "wakeup from lightsleep"); |
43 | 46 | } else if (sleep_args.mode->ival[0] == 1) { |
| 47 | + ESP_LOGI(TAG, "enter deep sleep"); |
44 | 48 | esp_deep_sleep_start(); |
45 | 49 | } else { |
46 | 50 | ESP_LOGE(TAG, "no valid arguments"); |
@@ -128,7 +132,7 @@ static void register_ext1_wakeup(void) |
128 | 132 |
|
129 | 133 | const esp_console_cmd_t cmd = { |
130 | 134 | .command = "ext1", |
131 | | - .help = "configue ext1 wakeup", |
| 135 | + .help = "configure ext1 wakeup", |
132 | 136 | .hint = NULL, |
133 | 137 | .func = &process_ext1_wakeup, |
134 | 138 | .argtable = &ext1_wakeup_args |
@@ -202,7 +206,7 @@ static void register_rtcio_wakeup(void) |
202 | 206 |
|
203 | 207 | const esp_console_cmd_t cmd = { |
204 | 208 | .command = "rtcio", |
205 | | - .help = "configue rtcio wakeup", |
| 209 | + .help = "configure rtcio wakeup", |
206 | 210 | .hint = NULL, |
207 | 211 | .func = &process_rtcio_wakeup, |
208 | 212 | .argtable = &rtcio_wakeup_args |
@@ -277,7 +281,7 @@ static void register_gpio_wakeup(void) |
277 | 281 |
|
278 | 282 | const esp_console_cmd_t cmd = { |
279 | 283 | .command = "gpio", |
280 | | - .help = "configue gpio wakeup", |
| 284 | + .help = "configure gpio wakeup", |
281 | 285 | .hint = NULL, |
282 | 286 | .func = &process_gpio_wakeup, |
283 | 287 | .argtable = &gpio_wakeup_args |
@@ -336,7 +340,7 @@ static void register_gpio_control(void) |
336 | 340 |
|
337 | 341 | const esp_console_cmd_t cmd = { |
338 | 342 | .command = "gpio_control", |
339 | | - .help = "configue gpio control", |
| 343 | + .help = "configure gpio control", |
340 | 344 | .hint = NULL, |
341 | 345 | .func = &process_gpio_control, |
342 | 346 | .argtable = &gpio_control_args |
|
0 commit comments