aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2009-11-02 16:43:33 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2009-11-02 16:43:33 +0000
commitf5527cb9a005164c5e51b2ee7ed63b9e0c733659 (patch)
treea34d7f1d343c3d25c548166a2193a9a35de33ee5
parent32f79b1cfc3819a3af1e56f9bb6bf8ba03ecb2d8 (diff)
output state on unsuccessfull connection attempt
svn path=/trunk/externals/hardware/wiimote/; revision=12717
-rw-r--r--wiimote.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wiimote.c b/wiimote.c
index 3be07ae..15c390b 100644
--- a/wiimote.c
+++ b/wiimote.c
@@ -104,7 +104,6 @@ static int addWiimoteObject(t_wiimote*x, int id) {
return 1;
}
-
static t_wiimote*getWiimoteObject(const int id) {
t_wiimoteList*wl=g_wiimoteList;
if(NULL==wl)
@@ -964,6 +963,7 @@ static void wiimote_doConnect(t_wiimote *x, t_symbol *addr, t_symbol *dongaddr)
if(NULL==x->wiimote) {
pd_error(x, "wiimote: unable to connect");
+ wiimote_out_status(x, x->connected);
return;
}