mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
The constructor sets m_channel to UINT32_MAX and reports an error if the channel index is out of range (or CheckDigitalChannel fails for some other reason). A Get() following this would result in a crash because it wasn't checking StatusIsFatal(). The new behavior now checks StatusIsFatal() and simply returns false. Change-Id: I15529401294e4ccd1e09df834e02cca367fab67c