|
Post by howard on Oct 18, 2019 4:37:30 GMT
I saw there were ways to block all CCs or a range of CCs but couldn't see an easy way to list the ones you want and block the rest. Of course Nic had the answer so I thought I would share it here in case others might want to use it.
You just need to clone the CC's you want and block the rest. Using the concise pattern matching rules (you need hex numbers for the CCs) would be like this for CC1, 11 and 64:
In hex it would be:
BX 01 = XX +C # clone CC1 BX 0B = XX +C # clone CC11 BX 40 = XX +C # clone CC64 BX XX = XX +B # block all incoming CCs
Or you can list the CCs in dec as follows:
if MT == B0 if M1 == $1 send M0 M1 M2 end if M1 == $11 send M0 M1 M2 end if M1 == $64 send M0 M1 M2 end block end
Thanks, Nic!
|
|