mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-27 18:02:17 +03:00
Correctly using fs:: namespace in SD & SDFS (#8493)
Remove `using namespace fs;` from SDFS.h Fix everything that depended on it
This commit is contained in:
@ -32,8 +32,8 @@
|
||||
|
||||
class SDClass {
|
||||
public:
|
||||
boolean begin(uint8_t csPin, uint32_t cfg = SPI_HALF_SPEED) {
|
||||
SDFS.setConfig(SDFSConfig(csPin, cfg));
|
||||
bool begin(uint8_t csPin, uint32_t cfg = SPI_HALF_SPEED) {
|
||||
SDFS.setConfig(SDFSConfig(csPin, cfg));
|
||||
return (boolean)SDFS.begin();
|
||||
}
|
||||
|
||||
@ -44,19 +44,19 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
File open(const char *filename, uint8_t mode = FILE_READ) {
|
||||
fs::File open(const char *filename, uint8_t mode = FILE_READ) {
|
||||
return SDFS.open(filename, getMode(mode));
|
||||
}
|
||||
|
||||
File open(const char *filename, const char *mode) {
|
||||
fs::File open(const char *filename, const char *mode) {
|
||||
return SDFS.open(filename, mode);
|
||||
}
|
||||
|
||||
File open(const String &filename, uint8_t mode = FILE_READ) {
|
||||
fs::File open(const String &filename, uint8_t mode = FILE_READ) {
|
||||
return open(filename.c_str(), mode);
|
||||
}
|
||||
|
||||
File open(const String &filename, const char *mode) {
|
||||
fs::File open(const String &filename, const char *mode) {
|
||||
return open(filename.c_str(), mode);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user