mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-27 18:02:17 +03:00
allows global object instances be switch off with defines (#2344)
This commit is contained in:
committed by
Ivan Grokhotkov
parent
bd01e44c76
commit
18297458be
@ -611,4 +611,6 @@ void File::rewindDirectory(void) {
|
||||
_file->rewind();
|
||||
}
|
||||
|
||||
#if !defined(NO_GLOBAL_INSTANCES) && !defined(NO_GLOBAL_SD)
|
||||
SDClass SD;
|
||||
#endif
|
||||
|
@ -132,6 +132,8 @@ private:
|
||||
friend boolean callback_openPath(SdFile&, char *, boolean, void *);
|
||||
};
|
||||
|
||||
#if !defined(NO_GLOBAL_INSTANCES) && !defined(NO_GLOBAL_SD)
|
||||
extern SDClass SD;
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user