-
Notifications
You must be signed in to change notification settings - Fork 298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unix time not working #3
Comments
@Alnoor55 Everything is fine with the library. When you change that line in that way - then your code is broken, because |
ok thanks
Alnoor
…On Wed, Feb 22, 2017 at 10:41 AM, Lukasz Sergiusz Michalik < ***@***.***> wrote:
@Alnoor55 <https://github.com/Alnoor55> Everything is fine with the
library. When you change that line in that way - then your code is broken,
because read(tm) returns 0 on success and 1 on failure.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AXG2QUhiiJS9f9HOrifOgD5x4dAOjAo-ks5rfFcogaJpZM4K99ve>
.
--
Alnoor Ratansi
Executive Legal Services INC.
104 Bergin Road
Newmarket, Ontario
L3X1S1
Tel: (416)-879-9200 <[email protected]>
***************************************************************************************************************
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the sender. This
message contains confidential information and is intended only for the
individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and
delete this e-mail from your system. If you are not the intended recipient
you are notified that disclosing, copying, distributing or taking any
action in reliance on the contents of this information is strictly
prohibited.
***************************************************************************************************************
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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;
}
The text was updated successfully, but these errors were encountered: