Pārlūkot izejas kodu

Chibios: Fix a HardFault bug (wait after start).

tags/v2.9
flabbergast pirms 8 gadiem
vecāks
revīzija
fdf808ee24
1 mainītis faili ar 7 papildinājumiem un 0 dzēšanām
  1. 7
    0
      tmk_core/protocol/chibios/main.c

+ 7
- 0
tmk_core/protocol/chibios/main.c Parādīt failu

@@ -101,6 +101,13 @@ int main(void) {
while(USB_DRIVER.state != USB_ACTIVE)
chThdSleepMilliseconds(50);

/* Do need to wait here!
* Otherwise the next print might start a transfer on console EP
* before the USB is completely ready, which sometimes causes
* HardFaults.
*/
chThdSleepMilliseconds(50);

print("USB configured.\n");

/* init TMK modules */

Notiek ielāde…
Atcelt
Saglabāt