From: Rostislav Lisovy Date: Thu, 10 Mar 2011 14:35:41 +0000 (+0100) Subject: More tests needed, but the test.c example now works in same way as before without UIO X-Git-Url: http://rtime.felk.cvut.cz/gitweb/mf6xx.git/commitdiff_plain/72b7fa95ae05e4d4e6ae83e9c83080025329ff4e More tests needed, but the test.c example now works in same way as before without UIO --- diff --git a/src/HuLinux-2.4.3/opendevh.c b/src/HuLinux-2.4.3/opendevh.c index bd8efe4..d105e1c 100644 --- a/src/HuLinux-2.4.3/opendevh.c +++ b/src/HuLinux-2.4.3/opendevh.c @@ -127,7 +127,7 @@ static int ScanSys(DWORD DeviceID, int deviceorder, DriverRecord *Rec) if(DeviceID == (device_id + (vendor_id << 16))) { - printf("DEVICE HAS BEEN FOUND!\n"); + //printf("DEVICE HAS BEEN FOUND!\n"); if(--deviceorder < 1) { for(i = 0; i < 7; i++) diff --git a/src/HuLinux-2.4.3/resources.c b/src/HuLinux-2.4.3/resources.c index 7c962fe..666ef2d 100644 --- a/src/HuLinux-2.4.3/resources.c +++ b/src/HuLinux-2.4.3/resources.c @@ -238,7 +238,7 @@ HUDAQHANDLE HUDAQAPI HudaqOpenDevice(const char* devicename, int deviceorder, in devrecord->DrvRes.DriverData = calloc(1, 1024); //!!!! THIS SHOULD BE SHARED !!!! devrecord->DrvRes.DriverDataSize = 1024; - /* + switch(InternalResetDevice(devrecord, shareflag)) { case HUDAQSUCCESS: break; // everything is OK @@ -248,7 +248,7 @@ HUDAQHANDLE HUDAQAPI HudaqOpenDevice(const char* devicename, int deviceorder, in HudaqCloseDevice((HUDAQHANDLE) devrecord); return(0); } - */ + return((HUDAQHANDLE) devrecord); }