File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
components/nofrendo-esp32 Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -47,17 +47,17 @@ static int psxSendRecv(int send) {
4747#endif
4848
4949 GPIO .out_w1tc = (1 <<PSX_ATT );
50- for (delay = 0 ; delay < 50 ; delay ++ );
50+ for (delay = 0 ; delay < 100 ; delay ++ );
5151 for (x = 0 ; x < 8 ; x ++ ) {
5252 if (send & 1 ) {
5353 GPIO .out_w1ts = (1 <<PSX_CMD );
5454 } else {
5555 GPIO .out_w1tc = (1 <<PSX_CMD );
5656 }
5757 DELAY ();
58- for (delay = 0 ; delay < 50 ; delay ++ );
58+ for (delay = 0 ; delay < 100 ; delay ++ );
5959 GPIO .out_w1tc = (1 <<PSX_CLK );
60- for (delay = 0 ; delay < 50 ; delay ++ );
60+ for (delay = 0 ; delay < 100 ; delay ++ );
6161 GPIO .out_w1ts = (1 <<PSX_CLK );
6262 ret >>=1 ;
6363 send >>=1 ;
@@ -111,10 +111,10 @@ void psxcontrollerInit() {
111111 //Send a few dummy bytes to clean the pipes.
112112 psxSendRecv (0 );
113113 psxDone ();
114- for (delay = 0 ; delay < 500 ; delay ++ );
114+ for (delay = 0 ; delay < 500 ; delay ++ ) DELAY () ;
115115 psxSendRecv (0 );
116116 psxDone ();
117- for (delay = 0 ; delay < 500 ; delay ++ );
117+ for (delay = 0 ; delay < 500 ; delay ++ ) DELAY () ;
118118 //Try and detect the type of controller, so we can give the user some diagnostics.
119119 psxSendRecv (0x01 );
120120 t = psxSendRecv (0x00 );
You can’t perform that action at this time.
0 commit comments