dfinput: return 0xff when the packet ends, like the real thing does
[pcsx_rearmed.git] / plugins / dfinput / pad.c
index b01340a..9a09563 100644 (file)
@@ -223,7 +223,7 @@ static unsigned char PADpoll_(unsigned char value) {
                do_cmd2(value);
 
        if (CurByte >= CmdLen)
                do_cmd2(value);
 
        if (CurByte >= CmdLen)
-               return 0;
+               return 0xff;    // verified
 
        return buf[CurByte++];
 }
 
        return buf[CurByte++];
 }