Skip to content

Commit 53ce914

Browse files
committed
Fixed compile error
1 parent e86ebd3 commit 53ce914

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

components/cmd_system/cmd_system.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,11 +233,11 @@ static int deep_sleep(int argc, char **argv)
233233
ESP_LOGE(TAG, "GPIO %d is not a valid IO", io_num);
234234
return 1;
235235
}
236-
int level = ESP_EXT1_WAKEUP_ALL_LOW;
236+
int level = 0;
237237
if (deep_sleep_args.wakeup_gpio_level->count)
238238
{
239239
level = deep_sleep_args.wakeup_gpio_level->ival[0];
240-
if (level != ESP_EXT1_WAKEUP_ALL_LOW && level != ESP_EXT1_WAKEUP_ANY_HIGH)
240+
if (level != 0 && level != 1)
241241
{
242242
ESP_LOGE(TAG, "Invalid wakeup level: %d", level);
243243
return 1;

sdkconfig.esp32-c3

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#
22
# Automatically generated file. DO NOT EDIT.
3-
# Espressif IoT Development Framework (ESP-IDF) 5.1.2 Project Configuration
3+
# Espressif IoT Development Framework (ESP-IDF) Project Configuration
44
#
55
CONFIG_SOC_ADC_SUPPORTED=y
66
CONFIG_SOC_DEDICATED_GPIO_SUPPORTED=y

0 commit comments

Comments
 (0)