mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
Fix SensorUtil issues (#1194)
C++ PDP was missing module check, and channel check called module. Java docs said 1 based instead of 0 based.
This commit is contained in:
committed by
Peter Johnson
parent
bbb622aaa6
commit
1d9ed8f458
@@ -58,5 +58,9 @@ bool SensorUtil::CheckSolenoidChannel(int channel) {
|
||||
}
|
||||
|
||||
bool SensorUtil::CheckPDPChannel(int channel) {
|
||||
return HAL_CheckPDPModule(channel);
|
||||
return HAL_CheckPDPChannel(channel);
|
||||
}
|
||||
|
||||
bool SensorUtil::CheckPDPModule(int module) {
|
||||
return HAL_CheckPDPModule(module);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user