Don't update status on 0 message
This commit is contained in:
parent
9ba74de61a
commit
15bd1f9ccf
1 changed files with 1 additions and 2 deletions
|
@ -220,8 +220,7 @@ grub_usb_keyboard_checkkey (struct grub_term_input *term)
|
|||
err = grub_usb_bulk_read_extended (termdata->usbdev,
|
||||
termdata->endp->endp_addr, sizeof (data),
|
||||
(char *) data, 10, &actual);
|
||||
|
||||
if (err)
|
||||
if (err || actual < 1)
|
||||
return -1;
|
||||
|
||||
termdata->status = data[0];
|
||||
|
|
Loading…
Reference in a new issue