dfinput: return 0xff when the packet ends, like the real thing does
authornotaz <notasas@gmail.com>
Tue, 14 Jun 2011 15:55:39 +0000 (18:55 +0300)
committernotaz <notasas@gmail.com>
Tue, 14 Jun 2011 15:55:39 +0000 (18:55 +0300)
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++];
 }