mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
Uses the fixed SensorBase functionality in the WPILib (#185)
This commit is contained in:
committed by
Peter Johnson
parent
8da577b56f
commit
a831978cce
@@ -24,7 +24,7 @@ AnalogOutput::AnalogOutput(uint32_t channel) {
|
||||
std::stringstream buf;
|
||||
buf << "analog input " << channel;
|
||||
|
||||
if (!HAL_CheckAnalogOutputChannel(channel)) {
|
||||
if (!SensorBase::CheckAnalogOutputChannel(channel)) {
|
||||
wpi_setWPIErrorWithContext(ChannelIndexOutOfRange, buf.str());
|
||||
m_channel = std::numeric_limits<uint32_t>::max();
|
||||
m_port = HAL_kInvalidHandle;
|
||||
|
||||
Reference in New Issue
Block a user