Mercurial > public > ostc4
diff Discovery/Src/t7.c @ 592:f52bc70e380f
MotionCtrl - Sectorview Map sectors directly to custom views:
In previous version detection of sector changes lead to a button event which triggered the change of the shown custom view. As result the views shown were depending on the angle which is present while entering focus state. The new implementation maps the primary view to the center sector and assigns the other enabled views around the center => views will always appear at the same angle value.
author | Ideenmodellierer |
---|---|
date | Sun, 03 Jan 2021 14:43:16 +0100 |
parents | 64bf41faab83 |
children | fd0b60dee6f3 |
line wrap: on
line diff
--- a/Discovery/Src/t7.c Wed Jan 06 22:02:49 2021 +0100 +++ b/Discovery/Src/t7.c Sun Jan 03 14:43:16 2021 +0100 @@ -1601,7 +1601,7 @@ return cv_disabled; } -void t7_change_customview(uint8_t action) +uint8_t t7_change_customview(uint8_t action) { uint8_t *pViews; uint8_t *pStartView,*pCurView, *pLastView; @@ -1660,6 +1660,7 @@ } while(cv_disabled); selection_customview = *pViews; + return *pViews; } void t7_select_customview(uint8_t selectedCustomview)