[Horus] Warnings removed

This commit is contained in:
Bertrand Songis
2016-08-29 13:51:09 +02:00
parent e6ac77a789
commit 5b9bd52737
2 changed files with 2 additions and 5 deletions
@@ -366,14 +366,10 @@ bool menuRadioSdManager(event_t _event)
if (currentBitmap) {
uint16_t height = currentBitmap->getHeight();
uint16_t width = currentBitmap->getWidth();
uint16_t startx = 0;
uint16_t starty = 0;
if (height > MENU_BODY_HEIGHT-10) {
starty = (height - MENU_BODY_HEIGHT - 10) / 2;
height = MENU_BODY_HEIGHT - 10;
}
if (width > LCD_W/2) {
startx = (width - LCD_W/2) / 2;
width = LCD_W/2;
}
lcd->drawScaledBitmap(currentBitmap, LCD_W / 2 - 20 + LCD_W/4 - width/2, MENU_BODY_TOP + MENU_BODY_HEIGHT/2 - height/2, width, height);
+2 -1
View File
@@ -99,8 +99,9 @@ void OpenTxSimulator::start(QByteArray & ee, bool tests)
void OpenTxSimulator::start(const char * filename, bool tests)
{
#if defined(ROTARY_ENCODER_NAVIGATION)
for (int i=0; i<DIM(rotencValue); i++)
for (uint8_t i=0; i<DIM(rotencValue); i++) {
rotencValue[i] = 0;
}
#endif
StartEepromThread(filename);