mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
Fix many errorprone warnings (#1247)
This fixes two real bugs: - TimedRobot had a m_period that was hiding the IterativeRobotBase m_period and was not getting initialized. - PDPSim was swapping two parameters to getCurrent()
This commit is contained in:
@@ -54,7 +54,7 @@ public class PDPSim {
|
||||
return new CallbackStore(m_index, channel, uid, PDPDataJNI::cancelCurrentCallback);
|
||||
}
|
||||
public double getCurrent(int channel) {
|
||||
return PDPDataJNI.getCurrent(channel, m_index);
|
||||
return PDPDataJNI.getCurrent(m_index, channel);
|
||||
}
|
||||
public void setCurrent(int channel, double current) {
|
||||
PDPDataJNI.setCurrent(m_index, channel, current);
|
||||
|
||||
Reference in New Issue
Block a user