mirror of
https://github.com/Bodmer/TFT_eSPI.git
synced 2025-08-04 05:04:42 +02:00
Issue #53 fix
In case of a non- supported BMP, the _tft->setRotation() should not be executed.
This commit is contained in:
@@ -156,8 +156,11 @@ void GfxUi::drawBmp(String filename, uint8_t x, uint16_t y) {
|
|||||||
} // End of bitmap access
|
} // End of bitmap access
|
||||||
} // End of bitmap file check
|
} // End of bitmap file check
|
||||||
|
|
||||||
bmpFile.close();
|
if(!goodBmp) {
|
||||||
if(!goodBmp) Serial.println(F("BMP format not recognised."));
|
Serial.print(F("BMP format not recognised. File:"));
|
||||||
|
Serial.println(filename);
|
||||||
|
}
|
||||||
|
else
|
||||||
_tft->setRotation(rotation); // Put back original rotation
|
_tft->setRotation(rotation); // Put back original rotation
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user