File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
ports/espressif/common-hal/microcontroller Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ void common_hal_never_reset_pin(const mcu_pin_obj_t *pin) {
51
51
}
52
52
53
53
STATIC void _reset_pin (gpio_num_t pin_number ) {
54
- #if CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3
54
+ #if defined( CONFIG_IDF_TARGET_ESP32S2 ) || defined( CONFIG_IDF_TARGET_ESP32S3 )
55
55
// Never ever reset pins used for flash and RAM.
56
56
if (26 <= pin_number && pin_number <= 32 ) {
57
57
return ;
@@ -69,7 +69,7 @@ STATIC void _reset_pin(gpio_num_t pin_number) {
69
69
return ;
70
70
}
71
71
#endif
72
- #elif CONFIG_IDF_TARGET_ESP32C3
72
+ #elif defined( CONFIG_IDF_TARGET_ESP32C3 )
73
73
// Never ever reset pins used for flash and RAM.
74
74
if (11 <= pin_number && pin_number <= 17 ) {
75
75
return ;
You can’t perform that action at this time.
0 commit comments