OTA example issues due to callback defined inside loop?
adamwolf opened this issue · comments
Adam Wolf commented
Hiya folks!
The OTA examples seem to work fine for me, but when adapting them to larger programs, I kept having a series of issues.
I found that the const OTA_Update_Callback callback
was being declared in loop()
(
It might even be a cause of some of the issues like #183.
MathewHDYT commented
Aformentioned issue is fixed in the linked Pull Request and has been fixed already because of #159.
For now your fix with putting it into global scope will fix the issue. Once the PR has been merged it can be done like in the examples again. Sorry for any inconviences caused.