TechnoJays / robot2015

Team94 FIRST FRC Robot Code
Apache License 2.0
1 stars 0 forks source link

Fix Drivetrain to allow channels/ports with a value of 0 #14

Closed adein closed 9 years ago

adein commented 9 years ago

Summary

The new microcontroller pin index starts at 0 instead of 1. Therefore, the value of 0 cannot be used to indicate that a circuit is not connected. The logic needs to be changed to check for >= 0.