From 4e8600e3b1e370687dd6dba5cc560e5552a1db82 Mon Sep 17 00:00:00 2001 From: OBattler Date: Fri, 20 Aug 2021 16:56:17 +0200 Subject: [PATCH] PS/2 mouse command F6. --- src/device/mouse_ps2.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/device/mouse_ps2.c b/src/device/mouse_ps2.c index f8ba676e0..649182ca5 100644 --- a/src/device/mouse_ps2.c +++ b/src/device/mouse_ps2.c @@ -194,6 +194,7 @@ ps2_write(uint8_t val, void *priv) keyboard_at_adddata_mouse_cmd(0xfa); break; + case 0xf6: /* set defaults */ case 0xff: /* reset */ mouse_reset: dev->mode = MODE_STREAM; @@ -201,8 +202,10 @@ mouse_reset: mouse_scan = 1; keyboard_at_mouse_reset(); keyboard_at_adddata_mouse_cmd(0xfa); - keyboard_at_adddata_mouse_cmd(0xaa); - keyboard_at_adddata_mouse_cmd(0x00); + if (dev->command == 0xff) { + keyboard_at_adddata_mouse_cmd(0xaa); + keyboard_at_adddata_mouse_cmd(0x00); + } break; default: