crankyoldgit / IRremoteESP8266

Infrared remote library for ESP8266/ESP32: send and receive infrared signals with multiple protocols. Based on: https://github.com/shirriff/Arduino-IRremote/
GNU Lesser General Public License v2.1
2.84k stars 810 forks source link

Fix compilation error when USB CDC on Boot is enabled #2080

Closed k-takata closed 3 months ago

k-takata commented 3 months ago

When USB CDC on Boot is enabled on ESP32-C3, an compilation error occurs, because Serial.begin() takes only one (or zero) parameter.

Check ARDUINO_USB_CDC_ON_BOOT and call it with the correct parameter.