mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
Uses the fixed SensorBase functionality in the WPILib (#185)
This commit is contained in:
committed by
Peter Johnson
parent
8da577b56f
commit
a831978cce
@@ -27,7 +27,7 @@ AnalogInput::AnalogInput(uint32_t channel) {
|
||||
std::stringstream buf;
|
||||
buf << "Analog Input " << channel;
|
||||
|
||||
if (!HAL_CheckAnalogInputChannel(channel)) {
|
||||
if (!SensorBase::CheckAnalogInputChannel(channel)) {
|
||||
wpi_setWPIErrorWithContext(ChannelIndexOutOfRange, buf.str());
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user