Mercurial > public > ostc4
comparison 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 |
comparison
equal
deleted
inserted
replaced
383:49a02dea8ae3 | 384:427ae9f8e28e |
---|---|
893 else if ((status.page == PageDive) | 893 else if ((status.page == PageDive) |
894 && (settingsGetPointer()->design < 7)) { | 894 && (settingsGetPointer()->design < 7)) { |
895 settingsGetPointer()->design = 7; // auto switch to 9 if necessary | 895 settingsGetPointer()->design = 7; // auto switch to 9 if necessary |
896 } else if ((status.page == PageDive) && (status.line != 0)) { | 896 } else if ((status.page == PageDive) && (status.line != 0)) { |
897 if (settingsGetPointer()->extraDisplay == EXTRADISPLAY_BIGFONT) | 897 if (settingsGetPointer()->extraDisplay == EXTRADISPLAY_BIGFONT) |
898 { | |
898 settingsGetPointer()->design = 3; | 899 settingsGetPointer()->design = 3; |
900 if(settingsGetPointer()->MotionDetection == MOTION_DETECT_SECTOR) | |
901 { | |
902 DefinePitchSectors(stateRealGetPointer()->lifeData.compass_pitch,CUSTOMER_DEFINED_VIEWS); | |
903 } | |
904 } | |
899 else if (settingsGetPointer()->extraDisplay | 905 else if (settingsGetPointer()->extraDisplay |
900 == EXTRADISPLAY_DECOGAME) | 906 == EXTRADISPLAY_DECOGAME) |
901 settingsGetPointer()->design = 4; | 907 settingsGetPointer()->design = 4; |
902 | 908 |
903 set_globalState(StD); | 909 set_globalState(StD); |