Uses the fixed SensorBase functionality in the WPILib (#185)

This commit is contained in:
Thad House
2016-07-21 23:24:06 -07:00
committed by Peter Johnson
parent 8da577b56f
commit a831978cce
10 changed files with 68 additions and 31 deletions

View File

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