receiver: don't consider group 0 in reprogramming keys
This commit is contained in:
parent
1dfc4f22df
commit
c99f470dd5
|
@ -362,7 +362,7 @@ def _feature_reprogrammable_keys_choices(device):
|
|||
for k in keys:
|
||||
if k[2] & _special_keys.KEY_FLAG.reprogrammable:
|
||||
key_choices = [ k[1] ] # it should always be possible to map the key to itself
|
||||
for g in range(0,9):
|
||||
for g in range(1,9): # group 0 and gmask 0 (k[3]) don't appear to work, don't consider group 0
|
||||
if ( k[3]==0 if g==0 else k[3] & 2**(g-1) ):
|
||||
for gm in groups[g]:
|
||||
if int(gm) != int(k[0]): # don't put itself in twice
|
||||
|
|
Loading…
Reference in New Issue