Skip to content

Commit

Permalink
correct SPIFFS error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
Pconti31 committed Mar 13, 2020
1 parent 7a04b1e commit 5932bf4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/GUIslice_drv_tft_espi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,6 @@ bool gslc_DrvDrawImage(gslc_tsGui* pGui,int16_t nDstX,int16_t nDstY,gslc_tsImgRe
// we to handle the loading now (when rendering).
if (sImgRef.eImgFlags == GSLC_IMGREF_NONE) {
return true; // Nothing to do

} else if ((sImgRef.eImgFlags & GSLC_IMGREF_SRC) == GSLC_IMGREF_SRC_FILE) {
// Load image from SPIFFS
#if (GSLC_SPIFFS_EN)
Expand All @@ -973,7 +972,7 @@ bool gslc_DrvDrawImage(gslc_tsGui* pGui,int16_t nDstX,int16_t nDstY,gslc_tsImgRe
return false; // TODO: not yet supported
}
#else
GSLC_DEBUG_PRINT("ERROR: GetImageFromSD() not supported as Config:GSLC_SPIFFS_EN=0", 0);
GSLC_DEBUG_PRINT("ERROR: GetImageFromFile() not supported as Config:GSLC_SPIFFS_EN=0", 0);
return false; // TODO: not yet supported
#endif // end GSLC_SPIFFS_EN
} else if ((sImgRef.eImgFlags & GSLC_IMGREF_SRC) == GSLC_IMGREF_SRC_RAM) {
Expand Down

0 comments on commit 5932bf4

Please sign in to comment.