HamBook – Diff between revs 21 and 23
?pathlinks?
Rev 21 | Rev 23 | |||
---|---|---|---|---|
Line 544... | Line 544... | |||
544 | _bandScan = null; |
544 | _bandScan = null; |
|
545 | } |
545 | } |
|
Line 546... | Line 546... | |||
546 | |
546 | |
|
Line -... | Line 547... | |||
- | 547 | _bandScan = new BandScan(_catAssemblies, (int)band.Min, (int)band.Max, _serialPort, Configuration); |
||
547 | _bandScan = new BandScan(_catAssemblies, (int)band.Min, (int)band.Max, _serialPort, Configuration); |
548 | |
|
548 | |
549 | //toolStripMenuItem16 |
|
549 | if (toolStripMenuItem14.Checked) |
550 | if (toolStripMenuItem14.Checked) |
|
Line 550... | Line 551... | |||
550 | { |
551 | { |
|
551 | _bandScan.Start(step, pause, scanDetectPause); |
552 | _bandScan.Start(step, pause, scanDetectPause, toolStripMenuItem16.Checked); |
|
Line 552... | Line 553... | |||
552 | |
553 | |
|
553 | return; |
554 | return; |
|
Line 554... | Line 555... | |||
554 | } |
555 | } |
|
555 | |
556 | |
|
556 | _bandScan.Start(step, pause); |
557 | _bandScan.Start(step, pause, toolStripMenuItem16.Checked); |
|
Line 855... | Line 856... | |||
855 | catch (Exception exception) |
856 | catch (Exception exception) |
|
856 | { |
857 | { |
|
857 | Log.Error(exception, Resources.Failed_to_read_power_state); |
858 | Log.Error(exception, Resources.Failed_to_read_power_state); |
|
858 | } |
859 | } |
|
859 | } |
860 | } |
|
- | 861 | |
||
- | 862 | private async void toolStripMenuItem17_Click(object sender, EventArgs e) |
||
- | 863 | { |
||
- | 864 | try |
||
- | 865 | { |
||
- | 866 | await _catAssemblies.CatWriteAsync<TunerState>("AC", new object[] { TunerState.TUNER_ON }, _cancellationToken); |
||
- | 867 | |
||
- | 868 | await _catAssemblies.CatWriteAsync<TunerState>("AC", new object[] { TunerState.TUNING_START }, _cancellationToken); |
||
- | 869 | } |
||
- | 870 | catch (Exception exception) |
||
- | 871 | { |
||
- | 872 | Log.Error(exception, Resources.Failed_tuning_current_frequency); |
||
- | 873 | } |
||
- | 874 | } |
||
860 | } |
875 | } |
|
861 | } |
876 | } |