wpilibsuite / allwpilib

Official Repository of WPILibJ and WPILibC
https://wpilib.org/
Other
1.04k stars 606 forks source link

[hal] Initialize DIO to true in sim #6670

Closed Gold856 closed 1 month ago

Gold856 commented 1 month ago

SimDIOData already initializes the value to true, this fixes the case where you create a DIO object, set its value to false, destroy it, and create another DIO object on the same port. This always ensures the new DIO object initializes to true.