mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-25 01:41:43 +00:00
Switch to 0-based for all pins on the RoboRIO [artf2564]
Change-Id: I249965a9d55aec53b7d8a9be3ba5cc43500ddda4
This commit is contained in:
@@ -55,7 +55,7 @@ AnalogModule::AnalogModule(uint8_t moduleNumber)
|
||||
{
|
||||
for (uint32_t i = 0; i < kAnalogChannels; i++)
|
||||
{
|
||||
void* port = getPortWithModule(moduleNumber, i+1);
|
||||
void* port = getPortWithModule(moduleNumber, i);
|
||||
int32_t status = 0;
|
||||
m_ports[i] = initializeAnalogPort(port, &status);
|
||||
wpi_setErrorWithContext(status, getHALErrorMessage(status));
|
||||
|
||||
Reference in New Issue
Block a user