comparison Discovery/Src/t7.c @ 374:ef1b8579166c MotionDetection

Removed some warnings
author ideenmodellierer
date Sun, 08 Sep 2019 13:45:43 +0200
parents 75eedde05ff6
children 0dbf550dc743
comparison
equal deleted inserted replaced
373:7b981f8bdd41 374:ef1b8579166c
1506 1506
1507 uint8_t enabledViewCnt = 0; 1507 uint8_t enabledViewCnt = 0;
1508 uint32_t cv_config = settingsGetPointer()->cv_configuration; 1508 uint32_t cv_config = settingsGetPointer()->cv_configuration;
1509 1509
1510 if(stateUsed->mode == MODE_DIVE) 1510 if(stateUsed->mode == MODE_DIVE)
1511 pViews = customviewsDive; 1511 pViews = (uint8_t*)customviewsDive;
1512 else 1512 else
1513 pViews = customviewsSurface; 1513 pViews = (uint8_t*)customviewsSurface;
1514 1514
1515 while((*pViews != CVIEW_END)) 1515 while((*pViews != CVIEW_END))
1516 { 1516 {
1517 increment = 1; 1517 increment = 1;
1518 /* check if view is enabled */ 1518 /* check if view is enabled */
1541 uint8_t *pViews; 1541 uint8_t *pViews;
1542 uint8_t *pStartView,*pCurView, *pLastView; 1542 uint8_t *pStartView,*pCurView, *pLastView;
1543 _Bool cv_disabled = 0; 1543 _Bool cv_disabled = 0;
1544 1544
1545 if(stateUsed->mode == MODE_DIVE) 1545 if(stateUsed->mode == MODE_DIVE)
1546 pViews = customviewsDive; 1546 pViews = (uint8_t*)customviewsDive;
1547 else 1547 else
1548 pViews = customviewsSurface; 1548 pViews = (uint8_t*)customviewsSurface;
1549 1549
1550 pStartView = pViews; 1550 pStartView = pViews;
1551 /* set pointer to currently selected view and count number of entries */ 1551 /* set pointer to currently selected view and count number of entries */
1552 while((*pViews != CVIEW_END)) 1552 while((*pViews != CVIEW_END))
1553 { 1553 {