From f5527cb9a005164c5e51b2ee7ed63b9e0c733659 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Mon, 2 Nov 2009 16:43:33 +0000 Subject: output state on unsuccessfull connection attempt svn path=/trunk/externals/hardware/wiimote/; revision=12717 --- wiimote.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.1