public static SetSettings ( IProject project, |
||
project | IProject | |
settings | ||
Résultat | void |
private void Save() { if (hasLoaded) { settings.Interface = (JlinkInterfaceType)interfaceSelectedIndex; settings.DeviceKey = selectedDevice?.Device; settings.TargetDevice = selectedDevice?.Device.Split(' ')[0].Trim(); JLinkDebugAdaptor.SetSettings(Model, settings); Model.Save(); } }
private void Save() { if (hasLoaded) { settings.Interface = (JlinkInterfaceType)interfaceSelectedIndex; settings.DeviceKey = selectedDevice?.Device; settings.TargetDevice = selectedDevice?.Device.Split(' ')[0].Trim(); if (!string.IsNullOrEmpty(speed)) { settings.SpeedkHz = Convert.ToInt32(speed); } else { settings.SpeedkHz = 12000; } JLinkDebugAdaptor.SetSettings(Model, settings); Model.Save(); } }