fix can rx fifo bug

This commit is contained in:
NeoZeng
2022-11-23 22:10:44 +08:00
parent 62b1783b59
commit 490b957045
11 changed files with 123 additions and 73 deletions

View File

@@ -242,7 +242,7 @@ void DJIMotorControl()
group = motor->sender_group;
num = motor->message_num;
sender_assignment[group].tx_buff[num] = 0xff & set >> 8;
sender_assignment[group].tx_buff[num + 1] = 0xff & set;
sender_assignment[group].tx_buff[2*num + 1] = 0xff & set;
}
else // 遇到空指针说明所有遍历结束,退出循环
break;