comparison Discovery/Src/t7.c @ 530:c880907fd1d7

Bugfix: No need to consider surface custom view in count of enabled view: In early motion control versions the detection was also applied in surface mode (as development support). The condition check is no longer needed because motion control is only applied in dive mode.
author Ideenmodellierer
date Tue, 15 Sep 2020 20:54:54 +0200
parents 962d7b2c18c6
children 0ad0b26ec56b
comparison
equal deleted inserted replaced
529:0e1db77b2aca 530:c880907fd1d7
1496 uint8_t increment = 1; 1496 uint8_t increment = 1;
1497 1497
1498 uint8_t enabledViewCnt = 0; 1498 uint8_t enabledViewCnt = 0;
1499 uint32_t cv_config = settingsGetPointer()->cv_configuration; 1499 uint32_t cv_config = settingsGetPointer()->cv_configuration;
1500 1500
1501 if(stateUsed->mode == MODE_DIVE) 1501 pViews = (uint8_t*)customviewsDive;
1502 pViews = (uint8_t*)customviewsDive;
1503 else
1504 pViews = (uint8_t*)customviewsSurface;
1505 1502
1506 while((*pViews != CVIEW_END)) 1503 while((*pViews != CVIEW_END))
1507 { 1504 {
1508 increment = 1; 1505 increment = 1;
1509 /* check if view is enabled */ 1506 /* check if view is enabled */