mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
Removes freePort from the HAL (#116)
It was a no-op, and most likely in the future it will be that way too. Removing to clean up the API.
This commit is contained in:
committed by
Peter Johnson
parent
5e2a76147c
commit
77a1af44c4
@@ -48,7 +48,6 @@ AnalogInput::AnalogInput(uint32_t channel) {
|
||||
int32_t status = 0;
|
||||
m_port = initializeAnalogInputPort(port, &status);
|
||||
wpi_setErrorWithContext(status, getHALErrorMessage(status));
|
||||
freePort(port);
|
||||
|
||||
LiveWindow::GetInstance()->AddSensor("AnalogInput", channel, this);
|
||||
HALReport(HALUsageReporting::kResourceType_AnalogChannel, channel);
|
||||
|
||||
Reference in New Issue
Block a user