Fixed a bug which made devMethods() return 0 if no TellStick was inserted.
This commit is contained in:
parent
d2e941ba27
commit
b7e55de443
1 changed files with 1 additions and 1 deletions
|
@ -291,7 +291,7 @@ int __stdcall devMethods(int id){
|
||||||
try{
|
try{
|
||||||
TelldusSettings ts;
|
TelldusSettings ts;
|
||||||
char* strModel = ts.getModel(id);
|
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) {
|
if (dev != NULL) {
|
||||||
intMethods = dev->methods(strModel);
|
intMethods = dev->methods(strModel);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue