mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-15 20:54:55 +00:00
Fix: removed references to pullup resistors in versiport digital outputs
This commit is contained in:
@@ -42,16 +42,17 @@ namespace PepperDash.Essentials.Core.CrestronIO
|
|||||||
OutputPort = postActivationFunc(config);
|
OutputPort = postActivationFunc(config);
|
||||||
|
|
||||||
OutputPort.Register();
|
OutputPort.Register();
|
||||||
|
if (!OutputPort.SupportsDigitalOutput)
|
||||||
OutputPort.SetVersiportConfiguration(eVersiportConfiguration.DigitalOutput);
|
{
|
||||||
if (config.DisablePullUpResistor)
|
Debug.Console(0, this, "Device does not support configuration as a Digital Output");
|
||||||
OutputPort.DisablePullUpResistor = true;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
OutputPort.VersiportChange += OutputPort_VersiportChange;
|
OutputPort.VersiportChange += OutputPort_VersiportChange;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Debug.Console(1, this, "Created GenericVersiportDigitalInputDevice on port '{0}'. DisablePullUpResistor: '{1}'", config.PortNumber, OutputPort.DisablePullUpResistor);
|
Debug.Console(1, this, "Created GenericVersiportDigitalOutputDevice on port '{0}'.", config.PortNumber);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user