Add method

This commit is contained in:
jpirnay
2026-03-28 12:15:47 +01:00
parent 08f05b7a5b
commit 9d7aa4e5a8
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -155,5 +155,8 @@ HalFile HalFile::openNextFile() {
assert(impl != nullptr);
return HalFile(std::make_unique<Impl>(impl->file.openNextFile()));
}
bool HalFile::getModifyDateTime(uint16_t* pdate, uint16_t* ptime) {
HAL_FILE_WRAPPED_CALL(getModifyDateTime, pdate, ptime);
}
bool HalFile::isOpen() const { return impl != nullptr && impl->file.isOpen(); } // already thread-safe, no need to wrap
HalFile::operator bool() const { return isOpen(); }
+1
View File
@@ -90,6 +90,7 @@ class HalFile : public Print {
void rewindDirectory();
bool close();
HalFile openNextFile();
bool getModifyDateTime(uint16_t* pdate, uint16_t* ptime);
bool isOpen() const;
operator bool() const;
};