From 75b6a3976f58057930f54b0da524dead2007f1b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Mon, 2 Nov 2009 16:48:11 +0000 Subject: output connection state when "status" is queried svn path=/trunk/externals/hardware/wiimote/; revision=12718 --- wiimote.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/wiimote.c b/wiimote.c index 15c390b..8f25d3e 100644 --- a/wiimote.c +++ b/wiimote.c @@ -788,11 +788,12 @@ static void cwiid_callback(cwiid_wiimote_t *wiimote, int mesg_count, static void wiimote_status(t_wiimote *x) { - if(x->connected) { - if (cwiid_request_status(x->wiimote)) { - pd_error(x, "error requesting status message"); - } - } + if(x->connected) { + if (cwiid_request_status(x->wiimote)) { + pd_error(x, "error requesting status message"); + } + } + wiimote_out_status(x, x->connected); } -- cgit v1.2.1