Mercurial > public > ostc4
diff Discovery/Src/tMenu.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 | 871baf20776b |
children | 5e41365ff0d8 |
line wrap: on
line diff
--- a/Discovery/Src/tMenu.c Sun Feb 17 21:14:09 2019 +0100 +++ b/Discovery/Src/tMenu.c Sun Feb 17 21:22:13 2019 +0100 @@ -1084,7 +1084,7 @@ uint16_t al88; }; - uint16_t* prunning = *ppDestination; + uint16_t* prunning = (uint16_t*)*ppDestination; union al88_u color_seperator; union al88_u color_unselected; @@ -1107,7 +1107,7 @@ *(__IO uint16_t*)prunning++ = color_seperator.al88; *(__IO uint16_t*)prunning++ = color_seperator.al88; - *ppDestination = prunning; + *ppDestination = (uint32_t)prunning; } @@ -1247,7 +1247,7 @@ pBackup = tMscreen.FBStartAdress; tMscreen.FBStartAdress = menu.StartAddressForPage[page]; - pDestination = menu.StartAddressForPage[page]; + pDestination = (uint16_t*) menu.StartAddressForPage[page]; positionText = 10; pageText = page;