@@ -32,7 +32,7 @@ bool __no_inline_not_in_flash_func(GamecubeConsole::Detect)() {
3232 switch (received[0 ]) {
3333 case RESET :
3434 case PROBE :
35- sleep_us (reply_delay);
35+ busy_wait_us (reply_delay);
3636 joybus_send_bytes (&_port, (uint8_t *)&default_gc_status, sizeof (gc_status_t ));
3737 break ;
3838 case RECALIBRATE :
@@ -41,7 +41,7 @@ bool __no_inline_not_in_flash_func(GamecubeConsole::Detect)() {
4141 default :
4242 // If we received an invalid command, wait long enough for command
4343 // to finish, then reset receiving.
44- sleep_us (reset_wait_period_us);
44+ busy_wait_us (reset_wait_period_us);
4545 joybus_port_reset (&_port);
4646 }
4747 }
@@ -61,13 +61,13 @@ bool __no_inline_not_in_flash_func(GamecubeConsole::WaitForPoll)() {
6161 case RESET :
6262 case PROBE :
6363 // Wait for stop bit before responding.
64- sleep_us (reply_delay);
64+ busy_wait_us (reply_delay);
6565 joybus_send_bytes (&_port, (uint8_t *)&default_gc_status, sizeof (gc_status_t ));
6666 break ;
6767 case RECALIBRATE :
6868 case ORIGIN :
6969 // Wait for stop bit before responding.
70- sleep_us (reply_delay);
70+ busy_wait_us (reply_delay);
7171 joybus_send_bytes (&_port, (uint8_t *)&default_gc_origin, sizeof (gc_origin_t ));
7272 break ;
7373 case POLL :
@@ -87,7 +87,7 @@ bool __no_inline_not_in_flash_func(GamecubeConsole::WaitForPoll)() {
8787 default :
8888 // If we received an invalid command, wait long enough for command
8989 // to finish, then reset receiving.
90- sleep_us (reset_wait_period_us);
90+ busy_wait_us (reset_wait_period_us);
9191 joybus_port_reset (&_port);
9292 }
9393 }
0 commit comments