[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

@@ -246,7 +246,7 @@ class LEDPattern {
LEDPattern AtBrightness(double relativeBrightness);
/** A pattern that turns off all LEDs. */
static LEDPattern kOff;
static LEDPattern Off();
/**
* Creates a pattern that displays a single static color along the entire

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