Mercurial > public > ostc4
diff Discovery/Src/t9.c @ 130:b7689d9e888a FlipDisplay
Minor changes to improved code quality and to eliminate warnings
author | Ideenmodellierer |
---|---|
date | Sun, 17 Feb 2019 21:22:13 +0100 |
parents | b364c75005bb |
children |
line wrap: on
line diff
--- a/Discovery/Src/t9.c Sun Feb 17 21:14:09 2019 +0100 +++ b/Discovery/Src/t9.c Sun Feb 17 21:22:13 2019 +0100 @@ -105,7 +105,7 @@ S9Background t9_background = { - .pointer = NULL, + .pointer = 0, }; /* Private types -------------------------------------------------------------*/ @@ -567,23 +567,28 @@ const uint8_t *pViews; if(stateUsed->mode == MODE_DIVE) + { pViews = t9_customviewsDive; + while((*pViews != CVIEW_END) && (*pViews != t9_selection_customview)) + {pViews++;} - while((*pViews != CVIEW_END) && (*pViews != t9_selection_customview)) - {pViews++;} - - if(*pViews < CVIEW_END) - pViews++; + if(*pViews < CVIEW_END) + pViews++; + else + { + if(stateUsed->mode == MODE_DIVE) + pViews = t9_customviewsDive; + } + t9_selection_customview = *pViews; + } else { - if(stateUsed->mode == MODE_DIVE) - pViews = t9_customviewsDive; + t9_selection_customview = 0; } - // if((*pViews == CVIEW_Scooter) && (getLicence() != LICENCEBONEX)) // pViews++; - t9_selection_customview = *pViews; + }