vedderb / bldc

The VESC motor control firmware
2.09k stars 1.31k forks source link

Duplicated include; improved shutdown.c; store data even without switch #624

Closed Gabrielerusso closed 11 months ago

Gabrielerusso commented 1 year ago

commands.c:

shutdown.c / shutdown.h / main.c:

Compiled almost all version without issues, tested on my custom esc with different combinations (with power switch, without power switch) and it seems to work well.

Gabrielerusso commented 1 year ago

Tested in those weeks with 4 escs and different configuration, 2 with power switch and 2 without, now i was able to save data, like the odometer without problems even in the version without the power switch.

1zun4 commented 11 months ago

Please merge this. This also solves my https://github.com/vedderb/bldc/issues/638 problem, as the only reason I need it is to store odometer data without software shutdown.