From b2dea5df6b043f41bc3d5d0df33c601a0a686559 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Fri, 20 May 2005 19:58:05 +0000 Subject: got rid of some minor warnings svn path=/trunk/externals/hcs/hid/; revision=3040 --- hid.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'hid.c') diff --git a/hid.c b/hid.c index 82c1b12..92465bc 100644 --- a/hid.c +++ b/hid.c @@ -140,6 +140,7 @@ t_int hid_open(t_hid *x, t_float f) * therefore ignore the redundant open request. To reopen the same device, * send a [close( msg, then an [open( msg. */ if (! x->x_device_open) + { if (hid_open_device(x,x->x_device_number)) { error("[hid] can not open device %d",x->x_device_number); @@ -149,6 +150,8 @@ t_int hid_open(t_hid *x, t_float f) { x->x_device_open = 1; } + } + /* restore the polling state so that when I [tgl] is used to start/stop [hid], * the [tgl]'s state will continue to accurately reflect [hid]'s state */ -- cgit v1.2.1