This function was: - Reading values from the controller - Checking write permission even when we just want reading values - Checking the mincap file instead of the actual controller The last one is also true for other functions using 'light_getBrightness'. This commit fixes that.
|
|
||
569 |
|
569 |
|
570 |
|
570 |
|
571 |
|
571 |
|
|
572 |
|
|
|
573 |
|
|
|
574 |
|
|
|
575 |
|
|
|
576 |
|
|
|
577 |
|
|
|
578 |
|
|
|
579 |
|
|
|
580 |
|
|
|
581 |
|
|
|
582 |
|
|
|
583 |
|
|
|
584 |
|
|
|
585 |
|
|
|
586 |
|
|
|
587 |
|
|
|
588 |
|
|
|
589 |
|
|
|
590 |
|
|
|
591 |
|
|
|
592 |
|
|
572 |
|
593 |
|
573 |
|
594 |
|
574 |
|
595 |
|
575 |
|
596 |
|
576 |
|
597 |
|
577 |
|
|
|
|
598 |
|
|
578 |
|
599 |
|
579 |
|
|
|
580 |
|
600 |
|
581 |
|
601 |
|
582 |
|
602 |
|
|
|
||
592 |
|
612 |
|
593 |
|
613 |
|
594 |
|
614 |
|
595 |
|
|
|
|
615 |
|
|
596 |
|
616 |
|
597 |
|
|
|
598 |
|
|
|
599 |
|
|
|
600 |
|
617 |
|
|
618 |
|
|
601 |
|
619 |
|
602 |
|
620 |
|
603 |
|
621 |
|
|
|
||
607 |
|
625 |
|
608 |
|
626 |
|
609 |
|
627 |
|
610 |
|
|
|
|
628 |
|
|
611 |
|
629 |
|
612 |
|
630 |
|
613 |
|
631 |
|
614 |
|
632 |
|
|
633 |
|
|
|
634 |
|
|
615 |
|
635 |
|
|
636 |
|
|
|
637 |
|
|
|
638 |
|
|
|
639 |
|
|
|
640 |
|
|
|
641 |
|
|
|
642 |
|
|
|
643 |
|
|
|
644 |
|
|
616 |
|
645 |
|
617 |
|
646 |
|
618 |
|
647 |
|
|
|
||
656 |
|
685 |
|
657 |
|
686 |
|
658 |
|
687 |
|
659 |
|
|
|
660 |
|
688 |
|
661 |
|
|
|
|
689 |
|
|
|
690 |
|
|
|
691 |
|
|
|
692 |
|
|
662 |
|
693 |
|
663 |
|
|
|
664 |
|
|
|
665 |
|
|
|
666 |
|
|
|
667 |
|
|
|
668 |
|
|
|
669 |
|
|
|
670 |
|
|
|
671 |
|
|
|
|
694 |
|
|
|
695 |
|
|
|
696 |
|
|
|
697 |
|
|
|
698 |
|
|
|
699 |
|
|
|
700 |
|
|
|
701 |
|
|
|
702 |
|
|
|
703 |
|
|
|
704 |
|
|
672 |
|
705 |
|
673 |
|
706 |
|
674 |
|
|
|
|
707 |
|
|
675 |
|
708 |
|
676 |
|
|
|
677 |
|
709 |
|
678 |
|
710 |
|
679 |
|
711 |
|
680 |
|
712 |
|
|
713 |
|
|
681 |
|
714 |
|
682 |
|
715 |
|
683 |
|
716 |
|
684 |
|
717 |
|
685 |
|
718 |
|
686 |
|
719 |
|
|
720 |
|
|
|
721 |
|
|
|
722 |
|
|
|
723 |
|
|
|
724 |
|
|
|
725 |
|
|
687 |
|
726 |
|
688 |
|
727 |
|
689 |
|
728 |
|