mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-06 08:16:11 +00:00
Merge branch 'main' into mc-messenger-improvements
This commit is contained in:
@@ -499,15 +499,15 @@ namespace PepperDash.Essentials
|
||||
messengerAdded = true;
|
||||
}
|
||||
|
||||
if (device is IBasicVolumeWithFeedback)
|
||||
if (device is IBasicVolumeControls)
|
||||
{
|
||||
var deviceKey = device.Key;
|
||||
this.LogVerbose(
|
||||
"Adding IBasicVolumeControlWithFeedback for {deviceKey}",
|
||||
"Adding IBasicVolumeControls for {deviceKey}",
|
||||
deviceKey
|
||||
);
|
||||
|
||||
var volControlDevice = device as IBasicVolumeWithFeedback;
|
||||
var volControlDevice = device as IBasicVolumeControls;
|
||||
var messenger = new DeviceVolumeMessenger(
|
||||
$"{device.Key}-volume-{Key}",
|
||||
string.Format("/device/{0}", deviceKey),
|
||||
|
||||
@@ -203,10 +203,18 @@ namespace PepperDash.Essentials.Touchpanel
|
||||
this.csSubnetMask = IPAddress.Parse(csSubnetMask);
|
||||
this.csIpAddress = 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);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user