summaryrefslogtreecommitdiff
path: root/ports/esp32/modesp32.c
diff options
context:
space:
mode:
Diffstat (limited to 'ports/esp32/modesp32.c')
-rw-r--r--ports/esp32/modesp32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/esp32/modesp32.c b/ports/esp32/modesp32.c
index e6d9f8045..0e0a7b7db 100644
--- a/ports/esp32/modesp32.c
+++ b/ports/esp32/modesp32.c
@@ -74,7 +74,7 @@ STATIC mp_obj_t esp32_wake_on_ext0(size_t n_args, const mp_obj_t *pos_args, mp_m
gpio_num_t pin_id = machine_pin_get_id(args[ARG_pin].u_obj);
if (pin_id != machine_rtc_config.ext0_pin) {
if (!RTC_IS_VALID_EXT_PIN(pin_id)) {
- mp_raise_msg(&mp_type_ValueError, "invalid pin");
+ mp_raise_ValueError("invalid pin");
}
machine_rtc_config.ext0_pin = pin_id;
}
@@ -109,7 +109,7 @@ STATIC mp_obj_t esp32_wake_on_ext1(size_t n_args, const mp_obj_t *pos_args, mp_m
gpio_num_t pin_id = machine_pin_get_id(elem[i]);
if (!RTC_IS_VALID_EXT_PIN(pin_id)) {
- mp_raise_msg(&mp_type_ValueError, "invalid pin");
+ mp_raise_ValueError("invalid pin");
break;
}
ext1_pins |= (1ll << pin_id);