Skip to content

Commit 7fa14cc

Browse files
committed
fix(example): print correct fade direction
1 parent f083e2d commit 7fa14cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/ESP32/examples/AnalogOut/LEDCFade/LEDCFade.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ void loop() {
5858
// Check if last fade was fade on
5959
if (fade_on) {
6060
ledcFadeWithInterrupt(LED_PIN, LEDC_START_DUTY, LEDC_TARGET_DUTY, LEDC_FADE_TIME, LED_FADE_ISR);
61-
Serial.println("LED Fade off started.");
61+
Serial.println("LED Fade on started.");
6262
fade_on = false;
6363
} else {
6464
ledcFadeWithInterrupt(LED_PIN, LEDC_TARGET_DUTY, LEDC_START_DUTY, LEDC_FADE_TIME, LED_FADE_ISR);
65-
Serial.println("LED Fade on started.");
65+
Serial.println("LED Fade off started.");
6666
fade_on = true;
6767
}
6868
}

0 commit comments

Comments
 (0)