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:
@@ -318,6 +318,12 @@ uint32_t furi_hal_rtc_get_pin_fails() {
|
||||
return furi_hal_rtc_get_register(FuriHalRtcRegisterPinFails);
|
||||
}
|
||||
|
||||
uint32_t furi_hal_rtc_get_timestamp() {
|
||||
FuriHalRtcDateTime datetime = {0};
|
||||
furi_hal_rtc_get_datetime(&datetime);
|
||||
return furi_hal_rtc_datetime_to_timestamp(&datetime);
|
||||
}
|
||||
|
||||
uint32_t furi_hal_rtc_datetime_to_timestamp(FuriHalRtcDateTime* datetime) {
|
||||
uint32_t timestamp = 0;
|
||||
uint8_t years = 0;
|
||||
|
Reference in New Issue
Block a user