mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-25 01:41:43 +00:00
[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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user