[wpilibc] Fix missing symbols on Windows (#7140)

Windows doesn't support direct static variable access across library boundaries in a mixed static/shared environment, so change to accessor functions.
This commit is contained in:
Jade
2024-10-01 22:46:06 +08:00
committed by GitHub
parent fe80d72fba
commit 466a4a52fa
5 changed files with 35 additions and 19 deletions

View File

@@ -78,11 +78,11 @@ class SensorUtil final {
*/
static bool CheckAnalogOutputChannel(int channel);
static const int kDigitalChannels;
static const int kAnalogInputs;
static const int kAnalogOutputs;
static const int kPwmChannels;
static const int kRelayChannels;
static int GetNumDigitalChannels();
static int GetNumAnalogInputs();
static int GetNumAnalogOuputs();
static int GetNumPwmChannels();
static int GetNumRelayChannels();
};
} // namespace frc