Skip to content

unix time not working #3

Description

@Alnoor55

DS1302RTC.cpp need to be corrected as follows
// PUBLIC FUNCTIONS

// --------------------------------------------------------
// Read the current time from the RTC and return it as a
// time_t value. Returns a zero value if an bus error occurred
// (e.g. RTC not present).
time_t DS1302RTC::get()
{
tmElements_t tm;
if (read(tm) == false) return 0;

return(makeTime(tm));

}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions