Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Enable fractional second timestamps (re-integration of #102)#146

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
tickelton wants to merge4 commits intoarduino-libraries:master
base:master
Choose a base branch
Loading
fromtickelton:hires-timestamp_reintegrate-pr-102

Conversation

@tickelton
Copy link

Since PR#102 seems inactive this rebases the changes from that PR to master and fixes the remaining CI issues.

Description of the original PR:

increase time accuracy to not above 100ms    complete decimal part of NTP    use high-freq polling    add _current_epoc_dec and get_millis() so that ms can be knownrewrite update()    solved overflow problem    change update()'s return type to byte in order to carry more info    add a not-request-too-fast feature by adding _last_fail in update()

In addition this PR fixes some spelling and white space issues of the original PR and refactors the new example to look more idiomatic as compared to the existing examples.

CI passes and I compiled all examples for NodeMCU and tested on actual hardware.

jamesmyatt, qistoph, and tomliptrot reacted with thumbs up emoji
WhymustIhaveanameand others added4 commitsMay 26, 2021 20:54
* Rebases WhymustIhaveaname:master to arduino-libraries:master.* Fixes issues with Spell Check action.* Fixes HiRes example compilation.* Refactors HiRes example to be more idiomatic as compared to the  existing examples.* Fixes several line ending and white space inconsistencies.
@CLAassistant
Copy link

CLAassistant commentedMay 26, 2021
edited
Loading

CLA assistant check
All committers have signed the CLA.

@github-actions
Copy link

Memory usage change @e4d04dd

Boardflash%RAM for global variables%
esp8266:esp8266:huzzah🔺 +1744 - +1744+0.17 - +0.17🔺 +192 - +192+0.23 - +0.23
Click for full report table
Boardexamples/Advanced
flash
%examples/Advanced
RAM for global variables
%examples/Basic
flash
%examples/Basic
RAM for global variables
%examples/HiRes
flash
%examples/HiRes
RAM for global variables
%examples/IsTimeSet
flash
%examples/IsTimeSet
RAM for global variables
%
esp8266:esp8266:huzzah17440.171920.2317440.171920.23N/AN/AN/AN/A17440.171920.23
Click for full report CSV
Board,examples/Advanced<br>flash,%,examples/Advanced<br>RAM for global variables,%,examples/Basic<br>flash,%,examples/Basic<br>RAM for global variables,%,examples/HiRes<br>flash,%,examples/HiRes<br>RAM for global variables,%,examples/IsTimeSet<br>flash,%,examples/IsTimeSet<br>RAM for global variables,%esp8266:esp8266:huzzah,1744,0.17,192,0.23,1744,0.17,192,0.23,N/A,N/A,N/A,N/A,1744,0.17,192,0.23

@chudsaviet
Copy link

Hi, any progress on merging this?

@tickelton
Copy link
Author

@chudsaviet I haven't received any feedback on this PR, and frankly by now I no longer have any use for it because I implemented an NTP client for the project I was working on from scratch to address this and a couple of other requirements I had that the NTPClient project seemed reluctant to address.

@chudsaviet
Copy link

@tickelton , would you mind if I take this commit over and make it production-ready?

@tickelton
Copy link
Author

@chudsaviet you are welcome to do so.

chudsaviet reacted with thumbs up emojijamesmyatt reacted with heart emoji

returnthis->forceUpdate();
int8_tNTPClient::update() {
uint32_t now=millis();
if(now>=this->_lastUpdate){//if not overflow
Copy link

@jamesmyattjamesmyattAug 31, 2021
edited
Loading

Choose a reason for hiding this comment

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

I'm not sure you need this logic.millis() - this->_lastUpdate should always give a positive integer by the power of integer arithmetic.

Choose a reason for hiding this comment

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

millis() rollover (depending on mcu) every ~49 days

@per1234per1234 added type: imperfectionPerceived defect in any part of project topic: codeRelated to content of the project itself labelsJun 23, 2024
@per1234per1234 linked an issueJun 23, 2024 that may beclosed by this pull request
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

2 more reviewers

@jamesmyattjamesmyattjamesmyatt left review comments

@HoustonAshHoustonAshHoustonAsh left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

topic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

An 0.5s System Error

7 participants

@tickelton@CLAassistant@chudsaviet@jamesmyatt@HoustonAsh@per1234@WhymustIhaveaname

[8]ページ先頭

©2009-2025 Movatter.jp