diff options
Diffstat (limited to 'src/illuminate.c')
-rw-r--r-- | src/illuminate.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/illuminate.c b/src/illuminate.c index b3afbfb..d5d40b2 100644 --- a/src/illuminate.c +++ b/src/illuminate.c @@ -75,7 +75,8 @@ int dmx_init() { //Always take the first device if (devlist==NULL || devlist->dev==NULL) { fprintf(stderr, "No usb device detected (looking for USB ID 0x%04X:0x%04X)\n", VID, PID); - return(2); + ftdi_deinit(&ftdi); + return 1; } dev=devlist->dev; |