mirror of
https://github.com/Bodmer/JPEGDecoder.git
synced 2025-08-06 14:22:16 +08:00
Avoid errors when SdFat used
Allow #define LOAD_SD_LIBRARY to be commented out when using SdFat
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "JPEGDecoder",
|
||||
"version": "1.7.4",
|
||||
"version": "1.7.5",
|
||||
"keywords": "jpeg, jpg, decoder, TFT",
|
||||
"description": "A JPEG decoder library, tested on Mega, Due and ESP8266",
|
||||
"repository":
|
||||
|
@ -1,5 +1,5 @@
|
||||
name=JPEGDecoder
|
||||
version=1.7.4
|
||||
version=1.7.5
|
||||
author=Bodmer <bodmer@anola.net>, Makoto Kurauchi, Rich Geldreich
|
||||
maintainer=Bodmer
|
||||
sentence= Jpeg decoder tested with Arduino Mega, Arduino Due and ESP8266 based NodeMCU 1.0
|
||||
|
@ -75,7 +75,7 @@ typedef unsigned int uint;
|
||||
class JPEGDecoder {
|
||||
|
||||
private:
|
||||
#ifdef LOAD_SD_LIBRARY
|
||||
#if defined (LOAD_SD_LIBRARY) || defined (LOAD_SDFAT_LIBRARY)
|
||||
File g_pInFileSd;
|
||||
#endif
|
||||
#ifdef LOAD_SPIFFS
|
||||
@ -126,7 +126,7 @@ public:
|
||||
int decodeFile (const char *pFilename);
|
||||
int decodeFile (const String& pFilename);
|
||||
|
||||
#ifdef LOAD_SD_LIBRARY
|
||||
#if defined (LOAD_SD_LIBRARY) || defined (LOAD_SDFAT_LIBRARY)
|
||||
int decodeSdFile (const char *pFilename);
|
||||
int decodeSdFile (const String& pFilename);
|
||||
int decodeSdFile (File g_pInFile);
|
||||
|
Reference in New Issue
Block a user