refactor: Drop FsFile alias, use HalFile in downstream code (#2141)
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
#define HAL_STORAGE_IMPL
|
||||
#include "HalStorage.h"
|
||||
|
||||
#include <FS.h> // need to be included before SdFat.h for compatibility with FS.h's File class
|
||||
|
||||
@@ -96,13 +96,6 @@ class HalFile : public Print {
|
||||
operator bool() const;
|
||||
};
|
||||
|
||||
// Only do renaming FsFile to HalFile if this header is included by downstream code
|
||||
// The renaming is to allow using the thread-safe HalFile instead of the raw FsFile, without needing to change the
|
||||
// downstream code
|
||||
#ifndef HAL_STORAGE_IMPL
|
||||
using FsFile = HalFile;
|
||||
#endif
|
||||
|
||||
// Downstream code must use Storage instead of SdMan
|
||||
#ifdef SdMan
|
||||
#undef SdMan
|
||||
|
||||
Reference in New Issue
Block a user