HamBook – Diff between revs 38 and 46
?pathlinks?
Rev 38 | Rev 46 | |||
---|---|---|---|---|
Line 21... | Line 21... | |||
21 | { |
21 | { |
|
22 | } |
22 | } |
|
Line 23... | Line 23... | |||
23 | |
23 | |
|
24 | public override void Set() |
24 | public override void Set() |
|
25 | { |
25 | { |
|
26 | SerialPort.Write($"{Name}{Generic.Constants.EOT}"); |
26 | SerialPort.Write($"{Name}{Constants.EOT}"); |
|
Line 27... | Line 27... | |||
27 | } |
27 | } |
|
28 | |
28 | |
|
29 | public override async Task WriteAsync(CancellationToken cancellationToken) |
29 | public override async Task WriteAsync(CancellationToken cancellationToken) |
|
Line 30... | Line 30... | |||
30 | { |
30 | { |
|
31 | var payload = Constants.Encoding.GetBytes($"{Name}{Generic.Constants.EOT}"); |
31 | var payload = Constants.Encoding.GetBytes($"{Name}{Constants.EOT}"); |
|
32 | |
32 | |
|
33 | await SerialPort.WriteAsync(payload, 0, payload.Length, cancellationToken); |
33 | await SerialPort.WriteAsync(payload, 0, payload.Length, cancellationToken); |