ibmpc_usb: Detect data out of sync for mouse

in case of replug or change devices
This commit is contained in:
tmk 2021-07-07 14:19:43 +09:00
parent 7438f7baab
commit e2c58b5044
2 changed files with 4 additions and 4 deletions

View file

@ -496,9 +496,9 @@ MOUSE_DONE:
b0 = code;
b1 = ibmpc_host_recv_response();
if (b1 == -1) break;
if (b1 == -1) { state = ERROR; break; }
b2 = ibmpc_host_recv_response();
if (b2 == -1) break;
if (b2 == -1) { state = ERROR; break; }
switch (mouse_id) {
case MOUSE_DEFAULT:

View file

@ -506,9 +506,9 @@ MOUSE_DONE:
b0 = code;
b1 = ibmpc.host_recv_response();
if (b1 == -1) break;
if (b1 == -1) { state = ERROR; break; }
b2 = ibmpc.host_recv_response();
if (b2 == -1) break;
if (b2 == -1) { state = ERROR; break; }
switch (mouse_id) {
case MOUSE_DEFAULT: