框架更新

This commit is contained in:
kai
2024-05-01 23:27:27 +08:00
2 changed files with 7 additions and 5 deletions

View File

@@ -300,7 +300,7 @@ void DJIMotorControl()
// 若该电机处于停止状态,直接将buff置零
if (motor->stop_flag == MOTOR_STOP)
memset(sender_assignment[group].tx_buff + 2 * num, 0, 16u);
memset(sender_assignment[group].tx_buff + 2 * num, 0, sizeof(uint16_t));
}
// 遍历flag,检查是否要发送这一帧报文