Fix: removed references to pullup resistors in versiport digital outputs

This commit is contained in:
Trevor Payne
2022-12-16 11:15:58 -05:00
parent 81c779e595
commit e8f773b2e6

View File

@@ -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);
}); });