-
Notifications
You must be signed in to change notification settings - Fork 277
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
<namespace>::*
forward declarations are not always created
#292
Comments
@mcspr Fixing and committing straight to main. Complete release coming up soonish. As an aside, could you please try harder to review and merge the ESP8266 power-saving PR esp8266/Arduino#7055 from yours truly? I wouldn't ask so insistently if you had not mentioned you would and I am hoping every day :-) Another remark, I think d-a-v has gotten the "grain" in Scheduler wrong, using lcd instead of min, in my poor understand this seems to generally result in thrashing, despite looking smart on paper ;-) In any case, it should be documented why min isn't the right choice. Why I am asking? Because it's a divergence from the pattern I had in mind when I proposed the code to the delay-family of functions that got merged and is now used by that :-) I may be wrong, no questions. |
re. 7055, what mainly caught my eye is timers stuff that work arounds timed light sleep, which tbh asks to be replaced with something like this implementation Will comment on the rest in the PR as soon as I got the time. re. Scheduler - I believe the idea with gcd is to allow wakeups doing something else instead of executing scheduled funcs. Open an issue to ping him? |
@mcspr I am sorry, but I don't know what you are telling me, certainly not at an actionable level. What I have implemented should be according to the freely available documentation from Espressif and provide an improvement over how things are handled now, no matter what. If you could find out how to handle the apparent race condition on going to sleep less verbosely, please provide the code? I'll have to look at the Scheduler again and inject some diagnostic output to get a more detailed impression. On doing that, I will open an issue with code fragments such that we can discuss the implications. To be sure: thank you for your efforts. Then again, I'm doing it all just for fun, either, no commercial work project uses the ESP8266, besides my use of the relatively recent GCC with C++ coroutine support switched on for validation of the whole idea (viz. libcoro). |
I hope I don't give an impression I get paid for this :) I would just wary of following Espressif api to the point, if it does not accomplish the task (or does not do anything, even when it says it does... or get fixed anytime in 2023 or in the future). Main highlight is |
See https://github.com/esp8266/Arduino/actions/runs/5292564029/jobs/9579589045?pr=8828#step:5:183
onewire.ino cannot build because
checkSwSerial
is not generated after .ino -> .cpp conversionTried to fix it via platformio/platformio-core#4586, but I missed that it was reverted for Tasmota platformio/platformio-core#4594 when sketch uses multiple .ino files
PIO breaks even with a single file, since only 'simple' declarations are generated
arduino-cli would behave the same when two or more .ino files are used, when forward-decl is added before library header is included
The text was updated successfully, but these errors were encountered: