Skip to content

Commit 6c24dee

Browse files
ci(pre-commit): Apply automatic fixes
1 parent bd405d2 commit 6c24dee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cores/esp32/esp32-hal-ledc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ void analogWrite(uint8_t pin, int value) {
785785

786786
void analogWriteFrequency(uint8_t pin, uint32_t freq) {
787787
ledc_channel_handle_t *bus = (ledc_channel_handle_t *)perimanGetPinBus(pin, ESP32_BUS_TYPE_LEDC);
788-
if (bus != NULL) { // if pin is attached to LEDC change frequency, otherwise update the global frequency
788+
if (bus != NULL) { // if pin is attached to LEDC change frequency, otherwise update the global frequency
789789
if (ledcChangeFrequency(pin, freq, analog_resolution) == 0) {
790790
log_e("analogWrite frequency cant be set due to selected resolution! Try to adjust resolution first");
791791
return;
@@ -796,7 +796,7 @@ void analogWriteFrequency(uint8_t pin, uint32_t freq) {
796796

797797
void analogWriteResolution(uint8_t pin, uint8_t resolution) {
798798
ledc_channel_handle_t *bus = (ledc_channel_handle_t *)perimanGetPinBus(pin, ESP32_BUS_TYPE_LEDC);
799-
if (bus != NULL) { // if pin is attached to LEDC change resolution, otherwise update the global resolution
799+
if (bus != NULL) { // if pin is attached to LEDC change resolution, otherwise update the global resolution
800800
if (ledcChangeFrequency(pin, analog_frequency, resolution) == 0) {
801801
log_e("analogWrite resolution cant be set due to selected frequency! Try to adjust frequency first");
802802
return;

0 commit comments

Comments
 (0)