mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-13 20:47:04 +00:00
Updates conditional check to allow for the highes numbered IR port to be used.
This commit is contained in:
parent
22ff61d7f3
commit
e5d4ba48fb
1 changed files with 158 additions and 158 deletions
|
|
@ -124,7 +124,7 @@ namespace PepperDash.Essentials.Core
|
||||||
Debug.Console(0, "WARNING: device with IR ports '{0}' not found", portDevKey);
|
Debug.Console(0, "WARNING: device with IR ports '{0}' not found", portDevKey);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
if (portNum >= irDev.NumberOfIROutputPorts)
|
if (portNum > irDev.NumberOfIROutputPorts)
|
||||||
{
|
{
|
||||||
Debug.Console(0, "WARNING: device '{0}' IR port {1} out of range",
|
Debug.Console(0, "WARNING: device '{0}' IR port {1} out of range",
|
||||||
portDevKey, portNum);
|
portDevKey, portNum);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue