we need to pass a single wiimote structure instead of the array to wiiuse_os_read

This commit is contained in:
Lysann Schlegel
2012-12-09 10:31:17 +01:00
parent ca7c6127ac
commit 82080f9f37

View File

@@ -286,7 +286,7 @@ int wiiuse_os_poll(struct wiimote_t** wm, int wiimotes) {
clear_dirty_reads(wm[i]);
/* read the pending message into the buffer */
r = wiiuse_os_read(wm, read_buffer, sizeof(read_buffer));
r = wiiuse_os_read(wm[i], read_buffer, sizeof(read_buffer));
if (r > 0) {
/* propagate the event */
propagate_event(wm[i], read_buffer[0], read_buffer+1);