Merge pull request #1301 from PepperDash/mc-tp-ip-fix

fix: only adjust IP if processor is a CS processor
This commit is contained in:
aknous 2025-07-28 12:57:24 -04:00 committed by GitHub
commit 2efab4f196
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -327,7 +327,7 @@ namespace PepperDash.Essentials.WebSocketServer
} }
string ip = processorIp; string ip = processorIp;
if (touchpanel.Touchpanel is IMobileControlCrestronTouchpanelController crestronTouchpanel) if (touchpanel.Touchpanel is IMobileControlCrestronTouchpanelController crestronTouchpanel && csIpAddress != null)
{ {
ip = crestronTouchpanel.ConnectedIps.Any(ipInfo => ip = crestronTouchpanel.ConnectedIps.Any(ipInfo =>
{ {