Skip to content

Commit 4adbb1c

Browse files
committed
Fix formatting
1 parent faae575 commit 4adbb1c

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

src/Arduino_SPIFFS.h

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -63,28 +63,28 @@ class Arduino_SPIFFS
6363
public:
6464

6565
int mount ();
66-
inline byte mounted () { return SPIFFS_mounted(&_fs); }
67-
inline void unmount () { SPIFFS_unmount(&_fs); }
66+
inline byte mounted () { return SPIFFS_mounted(&_fs); }
67+
inline void unmount () { SPIFFS_unmount(&_fs); }
6868

69-
inline int format () { return SPIFFS_format(&_fs); }
70-
inline int check () { return SPIFFS_check(&_fs); }
71-
inline int info (unsigned int & total, unsigned int & used) { return SPIFFS_info(&_fs, reinterpret_cast<u32_t*>(&total), reinterpret_cast<u32_t*>(&used)); }
69+
inline int format () { return SPIFFS_format(&_fs); }
70+
inline int check () { return SPIFFS_check(&_fs); }
71+
inline int info (unsigned int & total, unsigned int & used) { return SPIFFS_info(&_fs, reinterpret_cast<u32_t*>(&total), reinterpret_cast<u32_t*>(&used)); }
7272

73-
inline int err () { return SPIFFS_errno(&_fs); }
74-
inline void clearerr() { SPIFFS_clearerr(&_fs); }
73+
inline int err () { return SPIFFS_errno(&_fs); }
74+
inline void clearerr() { SPIFFS_clearerr(&_fs); }
7575

76-
inline int create (const char *path) { return SPIFFS_creat(&_fs, path, 0); }
77-
File open (const char *path, uint16_t const flags);
78-
inline int remove (const char *path) { return SPIFFS_remove(&_fs, path); }
79-
inline int rename (const char *old, const char *newPath) { return SPIFFS_rename(&_fs, old, newPath); }
80-
81-
inline int create (String const & path) { return create(path.c_str()); }
82-
inline File open (String const & path, uint16_t const flags) { return open(path.c_str(), flags); }
83-
inline int remove (String const & path) { return remove(path.c_str()); }
84-
inline int rename (String const & old, String const & newPath) { return rename(old.c_str(), newPath.c_str()); }
85-
86-
Directory opendir (const char *name);
87-
inline Directory opendir (String const & name) { return opendir(name.c_str()); }
76+
inline int create (const char * path) { return SPIFFS_creat(&_fs, path, 0); }
77+
File open (const char * path, uint16_t const flags);
78+
inline int remove (const char * path) { return SPIFFS_remove(&_fs, path); }
79+
inline int rename (const char * old, const char * newPath) { return SPIFFS_rename(&_fs, old, newPath); }
80+
81+
inline int create (String const & path) { return create(path.c_str()); }
82+
inline File open (String const & path, uint16_t const flags) { return open(path.c_str(), flags); }
83+
inline int remove (String const & path) { return remove(path.c_str()); }
84+
inline int rename (String const & old, String const & newPath) { return rename(old.c_str(), newPath.c_str()); }
85+
86+
Directory opendir (const char * name);
87+
inline Directory opendir (String const & name) { return opendir(name.c_str()); }
8888

8989

9090
private:

0 commit comments

Comments
 (0)