| 233 | } |
| 234 | |
| 235 | auto FatFsFileSystem::FreeFil(FIL* fil) -> void { |
| 236 | for (auto& fh : fil_pool_) { |
| 237 | if (&fh.fil == fil) { |
| 238 | fh.in_use = false; |
| 239 | return; |
| 240 | } |
| 241 | } |
| 242 | } |
| 243 | |
| 244 | auto FatFsFileSystem::AllocateDir() -> DIR* { |
| 245 | for (auto& dh : dir_pool_) { |