mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-09-20 14:38:18 +08:00
Merge pull request #375 from madcowswe/samuelsadok-patch-1
fix bad use of memcpy
This commit is contained in:
@@ -438,6 +438,6 @@ void Axis::run_state_machine_loop() {
|
||||
if (!status)
|
||||
current_state_ = AXIS_STATE_IDLE;
|
||||
else
|
||||
memcpy(task_chain_, task_chain_ + 1, sizeof(task_chain_) - sizeof(task_chain_[0]));
|
||||
memmove(task_chain_, task_chain_ + 1, sizeof(task_chain_) - sizeof(task_chain_[0]));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user