-
Notifications
You must be signed in to change notification settings - Fork 6
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
ESP32 core panic #4
Comments
Thanks for finding a bug, according to the issue the easiest fix is to make |
Changed float to double (see pilotak/WeatherMeters#4)
Changed float to double (see pilotak#4)
I tested it, and did a pull request both here and in pilotak/MovingAverageAngle#2 (that one also uses floats) Thanks btw for the great library |
ok i didn't realise this will also affect the MovingAverageAngle library (perfect investigation 👍) which i want to keep with floats due to FPU which leads me to an idea - I can easilly adjust the example for timers to bring the |
That is indeed the way I have done it now |
Hey, I tried your code, but it kept crashing. After some research it seems that the problem is with _dir.
According to this, you aren't allowed to do float arithmetic in an interupt.
void WeatherMeters::timer() gets called on interrupt. And void WeatherMeters::timer() calls float WeatherMeters::adcToDir(uint16_t value)
The text was updated successfully, but these errors were encountered: