Changeset f2d88f3 in mainline for uspace/drv/hid/ps2mouse/ps2mouse.c
- Timestamp:
- 2019-01-04T21:22:17Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- af7b85b
- Parents:
- 06412ba
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/hid/ps2mouse/ps2mouse.c
r06412ba rf2d88f3 77 77 uint8_t data = 0; \ 78 78 size_t nread; \ 79 const errno_t rc = chardev_read((mouse)->chardev, &data, 1, &nread); \ 79 const errno_t rc = chardev_read((mouse)->chardev, &data, 1, &nread, \ 80 chardev_f_none); \ 80 81 if (rc != EOK) { \ 81 82 ddf_msg(LVL_ERROR, "Failed reading byte: %s", str_error_name(rc));\ … … 184 185 185 186 size_t nread; 186 rc = chardev_read(mouse->chardev, &report, 1, &nread );187 rc = chardev_read(mouse->chardev, &report, 1, &nread, chardev_f_none); 187 188 if (rc != EOK || report != PS2_MOUSE_ACK) { 188 189 ddf_msg(LVL_ERROR, "Failed to confirm data reporting: %hhx.", … … 232 233 while (pos < psize) { 233 234 rc = chardev_read(mouse->chardev, pbuf + pos, psize - pos, 234 &nread );235 &nread, chardev_f_none); 235 236 if (rc != EOK) { 236 237 ddf_msg(LVL_WARN, "Error reading packet.");
Note:
See TracChangeset
for help on using the changeset viewer.