simplefoc / Arduino-FOC-drivers

Drivers and support code for SimpleFOC
https://docs.simplefoc.com/drivers_library
MIT License
146 stars 63 forks source link

Use of delete in calibratesensor.cpp/.h #17

Open Igitigit2 opened 1 year ago

Igitigit2 commented 1 year ago

All occurences of the scalar delete in the calibrated sensor code should be replaced by delete[] (vector delete). The bahaviour is otherwise undefined since the arrays were allocated by new float[..].

/Chris

runger1101001 commented 1 year ago

Thanks for reporting it!

Igitigit2 commented 1 year ago

Sorry, for not submitting it as a PR, but my code simply differs too much from the original version.

/Chris