diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2008-07-21 23:42:34 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2008-07-21 23:42:34 -0400 |
commit | 7481a303b6b877911717aa90bab84ab18618c463 (patch) | |
tree | 5897458691b9d21f865f8417f73d45813fd518a0 /src/mouse.c | |
parent | 9f4f640c88fc2258e6220217ad72a499dbcc6bb8 (diff) | |
download | seabios-hppa-7481a303b6b877911717aa90bab84ab18618c463.zip seabios-hppa-7481a303b6b877911717aa90bab84ab18618c463.tar.gz seabios-hppa-7481a303b6b877911717aa90bab84ab18618c463.tar.bz2 |
Support ps2 port RESET commands that respond with 1 or 2 bytes.
Some devices only respond with 1 byte - if they timeout reading the
second byte, don't fail the whole operation - just continue and
handle the 1 byte.
Diffstat (limited to 'src/mouse.c')
-rw-r--r-- | src/mouse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mouse.c b/src/mouse.c index 0f0a75f..7a74eba 100644 --- a/src/mouse.c +++ b/src/mouse.c @@ -97,7 +97,7 @@ mouse_15c201(struct bregs *regs) { u8 param[2]; int ret = aux_command(PSMOUSE_CMD_RESET_BAT, param); - if (ret) { + if (ret < 0) { set_code_fail(regs, RET_ENEEDRESEND); return; } |