CAN驱动修改优化
This commit is contained in:
@@ -197,7 +197,6 @@ namespace MonitorModule.ViewModels.Dialogs
|
||||
/// </summary>
|
||||
private IEnumerable<(string DisplayName, string Fingerprint, string MethodName)> DiscoverCanSignals()
|
||||
{
|
||||
if (_deviceManager?.CANFD == null) yield break;
|
||||
if (_systemConfig?.ConfigurationList == null) yield break;
|
||||
|
||||
var msgDb = DBCParse.MsgDatabase;
|
||||
@@ -331,7 +330,6 @@ namespace MonitorModule.ViewModels.Dialogs
|
||||
private void OnDbcLoaded(DBCLoadedArgs args)
|
||||
{
|
||||
if (args.Scope != _systemConfig?.Title) return;
|
||||
if (_deviceManager?.CANFD == null) return;
|
||||
|
||||
int channel = (int)args.Channel;
|
||||
var msgDb = DBCParse.MsgDatabase;
|
||||
|
||||
@@ -535,7 +535,6 @@ namespace MonitorModule.ViewModels
|
||||
private void RefreshConfiguredCanSignals()
|
||||
{
|
||||
if (_systemConfig?.ConfigurationList == null || _systemConfig.ConfigurationList.Count == 0) return;
|
||||
if (_deviceManager?.CANFD == null) return;
|
||||
|
||||
var msgDb = DBCParse.MsgDatabase;
|
||||
foreach (var channel in _systemConfig.ConfigurationList.Select(c => c.Channel).Distinct())
|
||||
@@ -633,7 +632,6 @@ namespace MonitorModule.ViewModels
|
||||
private void OnDbcLoaded(DBCLoadedArgs args)
|
||||
{
|
||||
if (args.Scope != TestStatus) return;
|
||||
if (_deviceManager?.CANFD == null) return;
|
||||
int channel = (int)args.Channel;
|
||||
var msgDb = DBCParse.MsgDatabase;
|
||||
if (channel < 0 || channel >= msgDb.Count) return;
|
||||
|
||||
Reference in New Issue
Block a user