CAN优化
This commit is contained in:
@@ -452,7 +452,7 @@ namespace CANModule.ViewModels
|
||||
|
||||
if (targetMsg != null)
|
||||
{
|
||||
_canfd.设置报文((uint)MessageSendChannel, targetMsg.msg_id.ToString(), SelectedSignal, SValue, sendPeriod);
|
||||
_canfd.设置报文((uint)MessageSendChannel, targetMsg.msg_id.ToString(), SelectedSignal, SValue, sendPeriod, IsDirectlySend);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -603,7 +603,7 @@ namespace CANModule.ViewModels
|
||||
private void OnDbcMessageDecoded(uint channel, ZDBC.DBCMessage msg)
|
||||
{
|
||||
// DBC 解码后的报文回调
|
||||
Application.Current.Dispatcher.Invoke(() =>
|
||||
Application.Current.Dispatcher.BeginInvoke(() =>
|
||||
{
|
||||
var msgName = System.Text.Encoding.Default.GetString(msg.strName).TrimEnd('\0');
|
||||
var find = CanMessageList.FirstOrDefault(s => s.报文ID == (int)msg.nID&& s.通道==channel);
|
||||
|
||||
Reference in New Issue
Block a user