Changeset 3bacee1 in mainline for uspace/drv/hid/ps2mouse/ps2mouse.c
- Timestamp:
- 2018-04-12T16:27:17Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3cf22f9
- Parents:
- 76d0981d
- git-author:
- Jiri Svoboda <jiri@…> (2018-04-11 19:25:33)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-04-12 16:27:17)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/hid/ps2mouse/ps2mouse.c
r76d0981d r3bacee1 165 165 166 166 /* Probe IntelliMouse extensions. */ 167 errno_t (*polling_f)(void *) = polling_ps2;167 errno_t (*polling_f)(void *) = polling_ps2; 168 168 if (probe_intellimouse(mouse, false) == EOK) { 169 169 ddf_msg(LVL_NOTE, "Enabled IntelliMouse extensions"); … … 253 253 errno_t rc; 254 254 255 bool buttons[PS2_BUTTON_COUNT] = { };255 bool buttons[PS2_BUTTON_COUNT] = { }; 256 256 while (true) { 257 uint8_t packet[PS2_BUFSIZE] = { };257 uint8_t packet[PS2_BUFSIZE] = { }; 258 258 rc = ps2_mouse_read_packet(mouse, packet, PS2_BUFSIZE); 259 259 if (rc != EOK) … … 305 305 errno_t rc; 306 306 307 bool buttons[INTELLIMOUSE_BUTTON_COUNT] = { };307 bool buttons[INTELLIMOUSE_BUTTON_COUNT] = { }; 308 308 while (true) { 309 uint8_t packet[INTELLIMOUSE_BUFSIZE] = { };309 uint8_t packet[INTELLIMOUSE_BUFSIZE] = { }; 310 310 rc = ps2_mouse_read_packet(mouse, packet, INTELLIMOUSE_BUFSIZE); 311 311 if (rc != EOK)
Note:
See TracChangeset
for help on using the changeset viewer.