-
Notifications
You must be signed in to change notification settings - Fork 13.3k
use a scheduled function for settimeofday_cb #6600
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please consider renaming functionalVoidVoid per comment.
Other than that, LGTM, approving.
cores/esp8266/coredecls.h
Outdated
|
||
#include <functional> | ||
|
||
using functionalVoidVoid = std::function<void()>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is rather confusing.
How about just functionalVoid? Alternatively, a function that takes no args is called a nullary function. A function that doesn't return a value is called a void function. How about:
-nullaryVoid
-functionalNullaryVoid
-functionalVoidNullary
-some variation of the above
fixes https://gitter.im/esp8266/Arduino?at=5d977042940b4c2fc074b949