Skip to content

update getLocalTime(). #2629

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

Merged
merged 3 commits into from
Apr 10, 2019
Merged

Conversation

a-c-sreedhar-reddy
Copy link
Contributor

No description provided.

Copy link
Contributor

@lbernstone lbernstone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if ms=0?

@a-c-sreedhar-reddy
Copy link
Contributor Author

ms should not be given zero right. I think ms here is timeout milliseconds.

@lbernstone
Copy link
Contributor

Nope. If it is 0, it should be able to immediately return a false. This means time is not synched (maybe the network is not yet connected), and it can be used in synchronous processing. I don't understand the issue you are fixing with this.

@me-no-dev
Copy link
Member

It simplifies the method and eliminates repetitive code. Penalty will really be microscopic. I will accept it :)

@me-no-dev me-no-dev merged commit 0906bf5 into espressif:master Apr 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants