Arduino-FOC-drivers icon indicating copy to clipboard operation
Arduino-FOC-drivers copied to clipboard

Use of delete in calibratesensor.cpp/.h

Open Igitigit2 opened this issue 3 years ago • 2 comments

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

Igitigit2 avatar Nov 30 '22 21:11 Igitigit2

Thanks for reporting it!

runger1101001 avatar Dec 01 '22 08:12 runger1101001

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

/Chris

Igitigit2 avatar Dec 01 '22 09:12 Igitigit2