From ba0de5128fb365622f42c4f555cefaf3193c1e4f Mon Sep 17 00:00:00 2001 From: Neil Dorin Date: Tue, 23 Sep 2025 11:56:57 -0600 Subject: [PATCH] Update src/PepperDash.Essentials.MobileControl/Touchpanel/MobileControlTouchpanelController.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../Touchpanel/MobileControlTouchpanelController.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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); + } } ///