Mask methods to lowest common denominator

This commit is contained in:
Micke Prag 2011-12-30 16:24:26 +01:00
parent e019f416d9
commit ed1dc8b2d3

View file

@ -70,7 +70,13 @@ com.telldus.live = function() {
menuId = 0; menuId = 0;
separatorId = 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; isRegistered = true;
registrationLinkVisible(false); registrationLinkVisible(false);
sendDevicesReport(); sendDevicesReport();