diff --git a/src/PepperDash.Essentials.MobileControl/Touchpanel/MobileControlTouchpanelController.cs b/src/PepperDash.Essentials.MobileControl/Touchpanel/MobileControlTouchpanelController.cs index 61f54832..540063c5 100644 --- a/src/PepperDash.Essentials.MobileControl/Touchpanel/MobileControlTouchpanelController.cs +++ b/src/PepperDash.Essentials.MobileControl/Touchpanel/MobileControlTouchpanelController.cs @@ -200,10 +200,18 @@ namespace PepperDash.Essentials.Touchpanel this.csSubnetMask = System.Net.IPAddress.Parse(csSubnetMask); this.csIpAddress = System.Net.IPAddress.Parse(csIpAddress); } - catch + catch (ArgumentException) { Debug.LogInformation("This processor does not have a CS LAN", this); } + catch (InvalidOperationException) + { + Debug.LogInformation("This processor does not have a CS LAN", this); + } + catch (Exception ex) + { + Debug.LogError($"Unexpected exception when checking CS LAN: {ex}", this); + } } ///