From 9c1517da3ec9533c8722a7a0e5bbf815dbb2909f Mon Sep 17 00:00:00 2001 From: notaz Date: Tue, 14 Jun 2011 18:55:39 +0300 Subject: [PATCH] dfinput: return 0xff when the packet ends, like the real thing does --- plugins/dfinput/pad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dfinput/pad.c b/plugins/dfinput/pad.c index b01340ab..9a09563f 100644 --- a/plugins/dfinput/pad.c +++ b/plugins/dfinput/pad.c @@ -223,7 +223,7 @@ static unsigned char PADpoll_(unsigned char value) { do_cmd2(value); if (CurByte >= CmdLen) - return 0; + return 0xff; // verified return buf[CurByte++]; } -- 2.39.5