Add method
This commit is contained in:
@@ -155,5 +155,8 @@ HalFile HalFile::openNextFile() {
|
|||||||
assert(impl != nullptr);
|
assert(impl != nullptr);
|
||||||
return HalFile(std::make_unique<Impl>(impl->file.openNextFile()));
|
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
|
bool HalFile::isOpen() const { return impl != nullptr && impl->file.isOpen(); } // already thread-safe, no need to wrap
|
||||||
HalFile::operator bool() const { return isOpen(); }
|
HalFile::operator bool() const { return isOpen(); }
|
||||||
|
|||||||
@@ -90,6 +90,7 @@ class HalFile : public Print {
|
|||||||
void rewindDirectory();
|
void rewindDirectory();
|
||||||
bool close();
|
bool close();
|
||||||
HalFile openNextFile();
|
HalFile openNextFile();
|
||||||
|
bool getModifyDateTime(uint16_t* pdate, uint16_t* ptime);
|
||||||
bool isOpen() const;
|
bool isOpen() const;
|
||||||
operator bool() const;
|
operator bool() const;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user