cleaning up dimming logic
Merge pull request #1094 from digitaldan/omnilink-unit-fix

[Omnilink] cleaning up dimming logic