]> git.zarvox.org Git - usbsnes.git/commitdiff
Check for disconnected controller at 12us, not 6us.
authorDrew Fisher <drew.m.fisher@gmail.com>
Mon, 21 Jun 2010 00:48:13 +0000 (17:48 -0700)
committerDrew Fisher <drew.m.fisher@gmail.com>
Mon, 21 Jun 2010 00:48:13 +0000 (17:48 -0700)
snes.S

diff --git a/snes.S b/snes.S
index a59cabda0e4b1ef0e335b778752cc13c61a8aaae..49209643e0969ef26eb2042fdd58bd87f310b93a 100644 (file)
--- a/snes.S
+++ b/snes.S
@@ -104,14 +104,13 @@ pollSnes:
 latchhigh:
        sbi PINC, PIN1  ; [0] Raise data latch
        call burn_clock
+       call burn_clock ; 12us
 
        ldi temp1, 8
        in temp2, PINC
        andi temp2, PIN2;  Mask out serial data pin
        breq unconnected
-       call burn_clock
 
-                       ; ~12us
        cbi PINC, PIN1  ; drop data latch
 readbitfirst8:
        call burn_clock ; wait for controller to drive data