comparison Discovery/Src/base.c @ 597:132e7e3d13a7

MotionControl-Sector: Map sectors during switch T7 <=> T3: The number and available custom views may differ between the setup for T3 and T7 view. That's why the sectors have to be remapped during every T3 <=> T7 switch
author Ideenmodellierer
date Mon, 04 Jan 2021 21:38:28 +0100
parents bb5ce239741f
children 916998f90e39
comparison
equal deleted inserted replaced
596:16e369eae6e5 597:132e7e3d13a7
790 { 790 {
791 settingsGetPointer()->design = 7; 791 settingsGetPointer()->design = 7;
792 if(settingsGetPointer()->MotionDetection == MOTION_DETECT_SECTOR) 792 if(settingsGetPointer()->MotionDetection == MOTION_DETECT_SECTOR)
793 { 793 {
794 DefinePitchSectors(settingsGetPointer()->viewPitch,CUSTOMER_DEFINED_VIEWS); 794 DefinePitchSectors(settingsGetPointer()->viewPitch,CUSTOMER_DEFINED_VIEWS);
795 MapCVToSector();
795 } 796 }
796 } 797 }
797 } 798 }
798 else 799 else
799 { 800 {
805 { 806 {
806 settingsGetPointer()->design = 3; 807 settingsGetPointer()->design = 3;
807 if(settingsGetPointer()->MotionDetection == MOTION_DETECT_SECTOR) 808 if(settingsGetPointer()->MotionDetection == MOTION_DETECT_SECTOR)
808 { 809 {
809 DefinePitchSectors(settingsGetPointer()->viewPitch,CUSTOMER_DEFINED_VIEWS); 810 DefinePitchSectors(settingsGetPointer()->viewPitch,CUSTOMER_DEFINED_VIEWS);
811 MapCVToSector();
810 } 812 }
811 } 813 }
812 else if (settingsGetPointer()->extraDisplay == EXTRADISPLAY_DECOGAME) 814 else if (settingsGetPointer()->extraDisplay == EXTRADISPLAY_DECOGAME)
813 settingsGetPointer()->design = 4; 815 settingsGetPointer()->design = 4;
814 set_globalState(StD); 816 set_globalState(StD);