From 5992d6be0bb39ba1524b15010f7949967ecb3587 Mon Sep 17 00:00:00 2001 From: Ivica Ico Bukvic <ico@vt.edu> Date: Sat, 30 Mar 2013 00:54:58 -0400 Subject: [PATCH] improvements to disis_wiimote to provide unsuccessful attempt at connecting with an explicit 0 from the connect outlet (version bump to 1.0.4) --- l2ork_addons/disis_wiimote/disis_wiimote.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/l2ork_addons/disis_wiimote/disis_wiimote.c b/l2ork_addons/disis_wiimote/disis_wiimote.c index eaf58b1b4..6697b2640 100644 --- a/l2ork_addons/disis_wiimote/disis_wiimote.c +++ b/l2ork_addons/disis_wiimote/disis_wiimote.c @@ -105,6 +105,11 @@ // http://disis.music.vt.edu // * Made sure that the involuntary disconnection detection (e.g. due to low battery) does get reported by showing appropriate connection status from the rightmost outlet +// v1.0.4 Changelog: +// 2013-03-29 DISIS (Ivica Ico Bukvic <ico@vt.edu) +// http://disis.music.vt.edu +// * Added explicit connection reporting even if it fails to connect (for use in GUI displays to reflect the connection pending) + #include <stdio.h> #include <unistd.h> #include <sys/select.h> @@ -1036,6 +1041,7 @@ static void pd_cwiid_doConnect(t_wiimote *x, t_symbol *dongaddr) if (x->wiimote == NULL) { post("Error: could not find and/or connect to a wiimote. Please ensure that bluetooth is enabled, and that the 'hcitool scan' command lists your Nintendo device."); + clock_delay(x->x_clock_status, 0); } else { if(!addWiimoteObject(x, cwiid_get_id(x->wiimote))) { @@ -1202,7 +1208,7 @@ static void *pd_cwiid_new(t_symbol* s, int argc, t_atom *argv) { int i; - post("DISIS threaded implementation of wiimote object v.1.0.3"); + post("DISIS threaded implementation of wiimote object v.1.0.4"); t_wiimote *x = (t_wiimote *)pd_new(pd_cwiid_class); // create outlets: -- GitLab