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

Backported getLocalTime from ESP32 Arduino#8407

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

Closed
h1aji wants to merge1 commit intoesp8266:masterfromh1aji:master
Closed

Backported getLocalTime from ESP32 Arduino#8407

h1aji wants to merge1 commit intoesp8266:masterfromh1aji:master

Conversation

@h1aji
Copy link

New PR. Removed previosly added modifications.
This time just importing new getLocalTime from ESP32 Arduino core

@d-a-v
Copy link
Collaborator

d-a-v commentedDec 14, 2021
edited
Loading

It seems that you have to renameor removethis one (which is slightly different).

@h1aji
Copy link
Author

the only part that appears different is - uint32_t count = ms / 10;

I assume we can modify

and make it
getLocalTime(&tmstruct, 500);
then deletegetLocalTime from that sketch

@earlephilhower what do you think?

@h1aji
Copy link
Author

@d-a-v does this look ok now?

Copy link
Collaborator

Choose a reason for hiding this comment

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

With this loop, maximum timeout is 10 times the value ofms, which is why Earle divided it by 10.
Original and probably later updated / fixed esp32 codeis there with a more accurate loop.
Do you think you can improve your proposal ?

Copy link
Author

Choose a reason for hiding this comment

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

Okay then, do you have an idea how LittleFS_Timestamp.ino sketch should be modified?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think it is OK to use the esp32 implementation globally and remove littlefs test's one.

@d-a-v
Copy link
Collaborator

About the CI error,time.cpp is not included in host tests because it holds standard functions already available on host's system.
I suggest moving the function into a new file (timehelper.cpp?) and adding this file in thehost build Makefile.

@h1aji
Copy link
Author

It looks like this PR causing lots of troubles. Shall I close it?

@d-a-v
Copy link
Collaborator

d-a-v commentedDec 16, 2021
edited
Loading

Shall I close it?

No :) if you want to do it.

(please tell if you only need the feature without adding it yourself)
(please comment if you don't agree with the review)

@h1aji
Copy link
Author

I dont mind if you add it yourself, otherwise I am happy with this commit, I wasnt sure how to change that sketch file, that why i though asking you

@d-a-v
Copy link
Collaborator

otherwise I am happy with this commit

I used updated esp32 code in#8413, moved the function into another file so it can be used for the esp8266, emulation on host, and host tests, and removed the old local copy from the littleFS test.

You can get inspiration from it to fix the CI builds if you like.

@h1aji
Copy link
Author

@d-a-v nice. tthank you.
I will close this PR

@h1ajih1aji closed thisDec 17, 2021
d-a-v added a commit to d-a-v/Arduino that referenced this pull requestJan 3, 2022
d-a-v added a commit that referenced this pull requestJan 4, 2022
* import getLocalTime() from esp32/Arduinofollows#8407
hasenradball pushed a commit to hasenradball/Arduino that referenced this pull requestNov 18, 2024
* import getLocalTime() from esp32/Arduinofollowsesp8266#8407
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@d-a-vd-a-vd-a-v left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@h1aji@d-a-v

[8]ページ先頭

©2009-2025 Movatter.jp