Storage: tree timestamps (#1971)

* Storage: tree timestamps
* Rpc: add storage timestamp
* Storage: correct timestamp owner
* Storage: update timestamp at sd mount

Co-authored-by: SG <who.just.the.doctor@gmail.com>
This commit is contained in:
あく
2022-11-04 14:26:04 +09:00
committed by GitHub
parent e3ea5bca76
commit d68ac50efd
15 changed files with 142 additions and 2 deletions

View File

@@ -82,6 +82,14 @@ const char* storage_data_status_text(StorageData* storage) {
return result;
}
void storage_data_timestamp(StorageData* storage) {
storage->timestamp = furi_hal_rtc_get_timestamp();
}
uint32_t storage_data_get_timestamp(StorageData* storage) {
return storage->timestamp;
}
/****************** storage glue ******************/
bool storage_has_file(const File* file, StorageData* storage_data) {