HamBook – Diff between revs 3 and 7

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 3 Rev 7
Line 3... Line 3...
3 using System.Drawing; 3 using System.Drawing;
4 using System.IO.Ports; 4 using System.IO.Ports;
5 using System.Linq; 5 using System.Linq;
6 using System.Text; 6 using System.Text;
7 using System.Text.RegularExpressions; 7 using System.Text.RegularExpressions;
-   8 using System.Threading;
8 using System.Threading.Tasks; 9 using System.Threading.Tasks;
9 using static HamBook.Radios.Yaesu.FT_891.Constants; 10 using static HamBook.Radios.Yaesu.FT_891.Constants;
Line 10... Line 11...
10   11  
11 namespace HamBook.Radios.Yaesu.FT_891 12 namespace HamBook.Radios.Yaesu.FT_891
Line 17... Line 18...
17   18  
18 public FA(SerialPort serialPort) : base(serialPort) 19 public FA(SerialPort serialPort) : base(serialPort)
19 { 20 {
Line 20... Line 21...
20 } 21 }
21   22  
22 public override void Set(int frequency) 23 public override bool Set(int frequency)
Line 23... Line 24...
23 { 24 {
-   25 var fa = frequency.ToString("000000000");
24 var fa = frequency.ToString("000000000"); 26  
Line 25... Line 27...
25   27 SerialPort.Write($"{Name}{fa}{Generic.Constants.EOT}");
26 SerialPort.Write($"{Name}{fa}{Generic.Constants.EOT}"); 28 return Read() == frequency;
27 } 29 }