HamBook – Diff between revs 17 and 18

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 17 Rev 18
Line 119... Line 119...
119 if(string.IsNullOrEmpty(split)) 119 if(string.IsNullOrEmpty(split))
120 { 120 {
121 continue; 121 continue;
122 } 122 }
Line 123... Line -...
123   -  
124 var command = $"{split}{Radios.Generic.Constants.EOT}"; -  
125   123  
126 try 124 try
127 { 125 {
128 switch (_catAssemblies.CatParse<BusyState>("BY", new object[] { command })) 126 switch (_catAssemblies.CatParse<BusyState>("BY", new object[] { $"{split}{Radios.Generic.Constants.EOT}" }))
129 { 127 {
130 case BusyState.ON: 128 case BusyState.ON:
131 if (!_configuration.Notifications.TryGetNotificationState(NotificationType.SignalScanDetect, out var notificationState)) 129 if (!_configuration.Notifications.TryGetNotificationState(NotificationType.SignalScanDetect, out var notificationState))
132 { 130 {
Line 141... Line 139...
141 await Task.Delay(TimeSpan.FromSeconds(detect), _scanningCancellationToken); 139 await Task.Delay(TimeSpan.FromSeconds(detect), _scanningCancellationToken);
142 } 140 }
143 continue; 141 continue;
144 } 142 }
145 } 143 }
146 catch(UnmatchedRadioResponseException exception) 144 catch (TargetInvocationException exception) when (exception.InnerException is UnmatchedRadioResponseException)
147 { 145 {
148 // suppress 146 // suppress
149 var b = exception; -  
150 } 147 }
151 catch(Exception exception) 148 catch (Exception exception)
152 { 149 {
153 var a = exception; 150 Log.Warning(exception, Resources.Unexpected_failure_while_scanning);
154 } 151 }
155 } 152 }
156 } 153 }
Line 157... Line 154...
157   154