Fix ledc error reported over serial on boot.

This commit is contained in:
Michael Haslam
2025-03-16 00:10:11 +00:00
committed by GitHub
parent 4d0cc4dc6e
commit 11d463ceda
@@ -199,8 +199,8 @@ void setup()
Serial.println("Starting keyboard work!");
ledcAttachPin(keyboard_BL_PIN, KB_BRIGHTNESS_CH);
ledcSetup(KB_BRIGHTNESS_CH, KB_BRIGHTNESS_FREQ, KB_BRIGHTNESS_RES);
ledcAttachPin(keyboard_BL_PIN, KB_BRIGHTNESS_CH);
ledcWrite(KB_BRIGHTNESS_CH, KB_BRIGHTNESS_BOOT_DUTY);
Serial.println("4");