Skip to content

Commit fec2046

Browse files
committed
Formatting
1 parent 4062014 commit fec2046

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

ports/espressif/common-hal/alarm/pin/PinAlarm.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,8 +384,12 @@ void alarm_pin_pinalarm_set_alarms(bool deep_sleep, size_t n_alarms, const mp_ob
384384
ESP_ERROR_CHECK(gpio_set_pull_mode(pin, GPIO_FLOATING));
385385
}
386386
gpio_int_type_t intr = GPIO_INTR_DISABLE;
387-
if (high) intr = GPIO_INTR_HIGH_LEVEL;
388-
if (low) intr = GPIO_INTR_LOW_LEVEL;
387+
if (high) {
388+
intr = GPIO_INTR_HIGH_LEVEL;
389+
}
390+
if (low) {
391+
intr = GPIO_INTR_LOW_LEVEL;
392+
}
389393
never_reset_pin_number(pin);
390394
gpio_wakeup_enable(pin, intr);
391395
gpio_set_intr_type(pin, intr);

ports/espressif/tools/build_memory_info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
# Name, Start, Length
6666
("LP SRAM", (0x5000_0000,), 16 * 1024),
6767
("HP SRAM", (0x4080_0000,), 320 * 1024),
68-
("PSRAM", (0x4200_0000,), 2 * 1024 * 1024),
68+
("PSRAM", (0x4200_0000,), 2 * 1024 * 1024),
6969
],
7070
"esp32h2": [
7171
# Name, Start, Length

0 commit comments

Comments
 (0)