ibmpc_usb: Detect data out of sync for mouse
in case of replug or change devices
This commit is contained in:
parent
7438f7baab
commit
e2c58b5044
2 changed files with 4 additions and 4 deletions
|
|
@ -496,9 +496,9 @@ MOUSE_DONE:
|
||||||
|
|
||||||
b0 = code;
|
b0 = code;
|
||||||
b1 = ibmpc_host_recv_response();
|
b1 = ibmpc_host_recv_response();
|
||||||
if (b1 == -1) break;
|
if (b1 == -1) { state = ERROR; break; }
|
||||||
b2 = ibmpc_host_recv_response();
|
b2 = ibmpc_host_recv_response();
|
||||||
if (b2 == -1) break;
|
if (b2 == -1) { state = ERROR; break; }
|
||||||
|
|
||||||
switch (mouse_id) {
|
switch (mouse_id) {
|
||||||
case MOUSE_DEFAULT:
|
case MOUSE_DEFAULT:
|
||||||
|
|
|
||||||
|
|
@ -506,9 +506,9 @@ MOUSE_DONE:
|
||||||
|
|
||||||
b0 = code;
|
b0 = code;
|
||||||
b1 = ibmpc.host_recv_response();
|
b1 = ibmpc.host_recv_response();
|
||||||
if (b1 == -1) break;
|
if (b1 == -1) { state = ERROR; break; }
|
||||||
b2 = ibmpc.host_recv_response();
|
b2 = ibmpc.host_recv_response();
|
||||||
if (b2 == -1) break;
|
if (b2 == -1) { state = ERROR; break; }
|
||||||
|
|
||||||
switch (mouse_id) {
|
switch (mouse_id) {
|
||||||
case MOUSE_DEFAULT:
|
case MOUSE_DEFAULT:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue