Let the LED chip settle a bit before waking it from the bootloader. (#42)

At least for one person that helps to reliably get the LEDs working without
disconnecting/reconnecting the power to the board multiple times.

Co-authored-by: Tomasz bla Fortuna <bla@thera.be>
This commit is contained in:
Tomasz bla Fortuna
2021-09-12 09:26:42 +02:00
committed by bwisn
co-authored by Tomasz bla Fortuna
parent f771cb545f
commit 8963c3bed0
+4
View File
@@ -51,7 +51,11 @@ void OVERRIDE keyboard_pre_init_kb(void) {
#endif
// Start LED UART
sdStart(&SD0, &ledUartInitConfig);
/* Let the LED chip settle a bit before switching the mode.
* That helped at least one person. */
wait_ms(15);
sdWrite(&SD0, ledMcuWakeup, 11);
// wait to receive response from wakeup
wait_ms(15);