aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wiimote.c11
1 files 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);
}