From 50a3b2fb7a1e9bf6461f27d939cf83270142be1a Mon Sep 17 00:00:00 2001 From: Adam Greenwood-Byrne Date: Sun, 28 Mar 2021 16:57:45 +0100 Subject: [PATCH] Got mouse coords working with iOS peripheral --- part12-wgt/wgt/mouse.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/part12-wgt/wgt/mouse.c b/part12-wgt/wgt/mouse.c index c4bf41a..34907be 100644 --- a/part12-wgt/wgt/mouse.c +++ b/part12-wgt/wgt/mouse.c @@ -163,17 +163,17 @@ void acl_poll() unsigned char d2 = bt_waitReadByte(); unsigned int dlen = d1 | (d2 << 8); + unsigned char data[dlen]; + + for (int i=0;i 7) { - unsigned char data[dlen]; - for (int i=0;i