rtc: Remove custom encoding

This commit is contained in:
CTCaer
2020-05-05 19:16:16 +03:00
parent 822e0dcd98
commit 5fe84a78ac
6 changed files with 18 additions and 62 deletions

View File

@@ -54,7 +54,7 @@ DWORD get_fattime (
max77620_rtc_get_time(&time);
if (n_cfg.timeoff)
{
u32 epoch = (u32)((s32)max77620_rtc_date_to_epoch(&time, true) + (s32)n_cfg.timeoff);
u32 epoch = (u32)((s32)max77620_rtc_date_to_epoch(&time) + (s32)n_cfg.timeoff);
max77620_rtc_epoch_to_date(epoch, &time);
}