Mercurial > public > ostc4
diff Discovery/Src/base.c @ 384:427ae9f8e28e MotionDetection
Consider number of available t3 views in sector handling:
Before chande the number of sectors were taken from t7 view only causing t3 view to be shown inconsistent in case t7 view count were not 6. => added function to count views.
author | ideenmodellierer |
---|---|
date | Thu, 17 Oct 2019 23:09:17 +0200 |
parents | 14fd5f35cb50 |
children | eb7696e0510f |
line wrap: on
line diff
--- a/Discovery/Src/base.c Thu Oct 17 21:15:42 2019 +0200 +++ b/Discovery/Src/base.c Thu Oct 17 23:09:17 2019 +0200 @@ -895,7 +895,13 @@ settingsGetPointer()->design = 7; // auto switch to 9 if necessary } else if ((status.page == PageDive) && (status.line != 0)) { if (settingsGetPointer()->extraDisplay == EXTRADISPLAY_BIGFONT) + { settingsGetPointer()->design = 3; + if(settingsGetPointer()->MotionDetection == MOTION_DETECT_SECTOR) + { + DefinePitchSectors(stateRealGetPointer()->lifeData.compass_pitch,CUSTOMER_DEFINED_VIEWS); + } + } else if (settingsGetPointer()->extraDisplay == EXTRADISPLAY_DECOGAME) settingsGetPointer()->design = 4;