HamBook – Diff between revs 43 and 46

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 43 Rev 46
Line 21... Line 21...
21 { 21 {
22 } 22 }
Line 23... Line 23...
23   23  
24 public override Information Read() 24 public override Information Read()
25 { 25 {
26 SerialPort.Write($"{Name}{Generic.Constants.EOT}"); 26 SerialPort.Write($"{Name}{Constants.EOT}");
27 var buffer = new byte[CatLength.Answer]; 27 var buffer = new byte[CatLength.Answer];
28 if (SerialPort.Read(buffer, 0, CatLength.Answer) != CatLength.Answer) 28 if (SerialPort.Read(buffer, 0, CatLength.Answer) != CatLength.Answer)
29 { 29 {
30 throw new UnexpectedRadioResponseException(Name, buffer); 30 throw new UnexpectedRadioResponseException(Name, buffer);
Line 42... Line 42...
42 var clarifierDirection = char.Parse(match.Result("${clarifierDirection}")); 42 var clarifierDirection = char.Parse(match.Result("${clarifierDirection}"));
43 var clarifierOffset = int.Parse(match.Result("${clarifierOffset}")); 43 var clarifierOffset = int.Parse(match.Result("${clarifierOffset}"));
44 var clar = int.Parse(match.Result("${clar}")) == 0 ? false : true; 44 var clar = int.Parse(match.Result("${clar}")) == 0 ? false : true;
45 var radioMode = char.Parse(match.Result("${mode}")); 45 var radioMode = char.Parse(match.Result("${mode}"));
46 var storage = match.Result("${storage}"); 46 var storage = match.Result("${storage}");
47 var ctcssMode = match.Result("${ctcssMode}"); 47 var ctcss = match.Result("${ctcssMode}");
48 var phase = match.Result("${phase}"); 48 var phase = match.Result("${phase}");
Line 49... Line 49...
49   49  
50 var information = new Information 50 var information = new Information
51 { 51 {
Line 54... Line 54...
54 ClarifierDirection = clarifierDirection, 54 ClarifierDirection = clarifierDirection,
55 ClarifierOffset = clarifierOffset, 55 ClarifierOffset = clarifierOffset,
56 Clar = clar, 56 Clar = clar,
57 RadioMode = new RadioMode(radioMode), 57 RadioMode = new RadioMode(radioMode),
58 Storage = storage, 58 Storage = storage,
59 CtcssMode = ctcssMode, 59 Ctcss = new Ctcss(ctcss),
60 Phase = phase 60 Phase = new Phase(phase)
61 }; 61 };
Line 62... Line 62...
62   62  
63 return information; 63 return information;
64 } 64 }