From b7e55de4435d82aec7793adacd24440e6cf2fbab Mon Sep 17 00:00:00 2001 From: Micke Prag Date: Sat, 16 Feb 2008 16:06:36 +0000 Subject: [PATCH] Fixed a bug which made devMethods() return 0 if no TellStick was inserted. --- driver/TellUsbD101/TellUsbD101.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver/TellUsbD101/TellUsbD101.cpp b/driver/TellUsbD101/TellUsbD101.cpp index abae47c4..cfd4f3e1 100644 --- a/driver/TellUsbD101/TellUsbD101.cpp +++ b/driver/TellUsbD101/TellUsbD101.cpp @@ -291,7 +291,7 @@ int __stdcall devMethods(int id){ try{ TelldusSettings ts; char* strModel = ts.getModel(id); - Device* dev = ts.getDevice(id); + Device* dev = ts.getDevice(id, -1); //We send dongleIndex=-1 sice we wouldn't send any data! if (dev != NULL) { intMethods = dev->methods(strModel); }