Skip to content

Commit 15d2dae

Browse files
author
gychang
committed
pre-commit formatting fix
1 parent 720212b commit 15d2dae

File tree

1 file changed

+4
-4
lines changed
  • ports/espressif/common-hal/neopixel_write

1 file changed

+4
-4
lines changed

ports/espressif/common-hal/neopixel_write/__init__.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,10 @@ void common_hal_neopixel_write(const digitalio_digitalinout_obj_t *digitalinout,
126126
// Update the next start to +2 ticks. It ensures that we've gone 300+ us.
127127
next_start_raw_ticks = port_get_raw_ticks(NULL) + 2;
128128

129-
#if defined(CONFIG_IDF_TARGET_ESP32C3)
129+
#if defined(CONFIG_IDF_TARGET_ESP32C3)
130130
// Hold the pin, deleting the channel seems to glitch pixels into turning off.
131131
gpio_hold_en(digitalinout->pin->number);
132-
#endif
132+
#endif
133133

134134
// Free channel again
135135
rmt_del_encoder(encoder);
@@ -140,8 +140,8 @@ void common_hal_neopixel_write(const digitalio_digitalinout_obj_t *digitalinout,
140140
// Swap pin back to GPIO mode
141141
gpio_set_direction(digitalinout->pin->number, GPIO_MODE_OUTPUT);
142142

143-
#if defined(CONFIG_IDF_TARGET_ESP32C3)
143+
#if defined(CONFIG_IDF_TARGET_ESP32C3)
144144
// Release hold
145145
gpio_hold_dis(digitalinout->pin->number);
146-
#endif
146+
#endif
147147
}

0 commit comments

Comments
 (0)