You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Asking advice on following:
In my main loop I have some blocking procedures (can be several seconds) and would like to put dsc.loop() out from the main loop (to maintain its functionality).
My idea is to run dsc.loop() with a timer interrupt (eg. every 100ms).
What is the recommended interval for dsc.loop() to run?
Developing on PlatformIO/esp32 if that matter.
Thanks
The text was updated successfully, but these errors were encountered:
Hi Dilbert66
Good idea, but not sure that dsc.loop() function is designed in a thread safe operation (eg. dsc.loop put something into the dsc buffer, while main loop also accessing the same buffer...)
Thx
Might be an issue but since you are only reading the buffer with the main loop and not writing to it, it might be fine. Yes, you are also resetting some flags so that could be a cause of issue.
Alternatively, you could put your blocking process in it's own task instead.
Hi,
Asking advice on following:
In my main loop I have some blocking procedures (can be several seconds) and would like to put dsc.loop() out from the main loop (to maintain its functionality).
My idea is to run dsc.loop() with a timer interrupt (eg. every 100ms).
What is the recommended interval for dsc.loop() to run?
Developing on PlatformIO/esp32 if that matter.
Thanks
The text was updated successfully, but these errors were encountered: