From: Ian Abbott Date: Wed, 1 Oct 2008 16:18:56 +0000 (+0000) Subject: Patch from Anders Blomdell: pick first board when bus/slot unspecified. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=683433f5b3ed22a377a3823ceebdeb971a63fc00;p=comedi.git Patch from Anders Blomdell: pick first board when bus/slot unspecified. --- diff --git a/comedi/drivers/daqboard2000.c b/comedi/drivers/daqboard2000.c index e7aefeef..ba5ff0bd 100644 --- a/comedi/drivers/daqboard2000.c +++ b/comedi/drivers/daqboard2000.c @@ -745,6 +745,7 @@ static int daqboard2000_attach(comedi_device * dev, comedi_devconfig * it) continue; } } + break; /* found one */ } if (!card) { if (bus || slot)