vedderb / bldc

The VESC motor control firmware
2.16k stars 1.35k forks source link

Pass reply_func to sample_send_thread #482

Closed TechAUmNu closed 2 years ago

TechAUmNu commented 2 years ago

When data is being sampled another command can be received on a different port and cause the sampled data to be sent to the wrong port. This change saves the reply_func for the requester so other commands can be processed on other ports without issue.

vedderb commented 2 years ago

Nice fix!