| 114 | } |
| 115 | |
| 116 | bool HalStorage::openFileForWrite(const char* moduleName, const char* path, HalFile& file) { |
| 117 | StorageLock lock; // ensure thread safety for the duration of this function |
| 118 | FsFile fsFile; |
| 119 | bool ok = SDCard.openFileForWrite(moduleName, path, fsFile); |
| 120 | file = HalFile(std::make_unique<HalFile::Impl>(std::move(fsFile))); |
| 121 | return ok; |
| 122 | } |
| 123 | |
| 124 | bool HalStorage::openFileForWrite(const char* moduleName, const std::string& path, HalFile& file) { |
| 125 | return openFileForWrite(moduleName, path.c_str(), file); |
no test coverage detected