Add volatile software RTC to the TempDataLogger application if the dummy RTC mode is enabled.
This commit is contained in:
parent
fc61e88a8d
commit
b4af3f1fc9
7 changed files with 116 additions and 31 deletions
|
@ -85,7 +85,7 @@ DWORD get_fattime (void)
|
|||
{
|
||||
TimeDate_t CurrTimeDate;
|
||||
|
||||
DS1307_GetTimeDate(&CurrTimeDate);
|
||||
RTC_GetTimeDate(&CurrTimeDate);
|
||||
|
||||
|
||||
return ((DWORD)(20 + CurrTimeDate.Year) << 25) |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue