[Horus] Warnings removed
This commit is contained in:
@@ -366,14 +366,10 @@ bool menuRadioSdManager(event_t _event)
|
|||||||
if (currentBitmap) {
|
if (currentBitmap) {
|
||||||
uint16_t height = currentBitmap->getHeight();
|
uint16_t height = currentBitmap->getHeight();
|
||||||
uint16_t width = currentBitmap->getWidth();
|
uint16_t width = currentBitmap->getWidth();
|
||||||
uint16_t startx = 0;
|
|
||||||
uint16_t starty = 0;
|
|
||||||
if (height > MENU_BODY_HEIGHT-10) {
|
if (height > MENU_BODY_HEIGHT-10) {
|
||||||
starty = (height - MENU_BODY_HEIGHT - 10) / 2;
|
|
||||||
height = MENU_BODY_HEIGHT - 10;
|
height = MENU_BODY_HEIGHT - 10;
|
||||||
}
|
}
|
||||||
if (width > LCD_W/2) {
|
if (width > LCD_W/2) {
|
||||||
startx = (width - LCD_W/2) / 2;
|
|
||||||
width = LCD_W/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);
|
lcd->drawScaledBitmap(currentBitmap, LCD_W / 2 - 20 + LCD_W/4 - width/2, MENU_BODY_TOP + MENU_BODY_HEIGHT/2 - height/2, width, height);
|
||||||
|
|||||||
@@ -99,8 +99,9 @@ void OpenTxSimulator::start(QByteArray & ee, bool tests)
|
|||||||
void OpenTxSimulator::start(const char * filename, bool tests)
|
void OpenTxSimulator::start(const char * filename, bool tests)
|
||||||
{
|
{
|
||||||
#if defined(ROTARY_ENCODER_NAVIGATION)
|
#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;
|
rotencValue[i] = 0;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
StartEepromThread(filename);
|
StartEepromThread(filename);
|
||||||
|
|||||||
Reference in New Issue
Block a user