Fixed a bug which made devMethods() return 0 if no TellStick was inserted.

This commit is contained in:
Micke Prag 2008-02-16 16:06:36 +00:00
parent d2e941ba27
commit b7e55de443

View file

@ -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);
}