Mask methods to lowest common denominator
This commit is contained in:
parent
e019f416d9
commit
ed1dc8b2d3
1 changed files with 7 additions and 1 deletions
|
@ -70,7 +70,13 @@ com.telldus.live = function() {
|
|||
menuId = 0;
|
||||
separatorId = 0;
|
||||
}
|
||||
supportedMethods = msg.getInt('supportedMethods');
|
||||
//Mask to lowest common denominator
|
||||
supportedMethods =
|
||||
com.telldus.core.TELLSTICK_TURNON |
|
||||
com.telldus.core.TELLSTICK_TURNOFF |
|
||||
com.telldus.core.TELLSTICK_DIM |
|
||||
com.telldus.core.TELLSTICK_BELL;
|
||||
supportedMethods = supportedMethods & msg.getInt('supportedMethods');
|
||||
isRegistered = true;
|
||||
registrationLinkVisible(false);
|
||||
sendDevicesReport();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue