Skip to content

Commit

Permalink
remove default value
Browse files Browse the repository at this point in the history
  • Loading branch information
rzblue committed Aug 8, 2024
1 parent 9bba58b commit e0dd41c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion wpilibc/src/main/native/include/frc/DigitalGlitchFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ class DigitalGlitchFilter : public wpi::Sendable,
void InitSendable(wpi::SendableBuilder& builder) override;

private:
int m_channelIndex;

// Sets the filter for the input to be the requested index. A value of 0
// disables the filter, and the filter value must be between 1 and 3,
// inclusive.
Expand All @@ -129,7 +131,6 @@ class DigitalGlitchFilter : public wpi::Sendable,
*/
static int AllocateFilterIndex();

int m_channelIndex = -1;
static wpi::mutex m_mutex;
static std::array<bool, 3> m_filterAllocated;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public long getPeriodNanoSeconds() {
@Override
public void initSendable(SendableBuilder builder) {}

private int m_channelIndex = -1;
private int m_channelIndex;
private static final Lock m_mutex = new ReentrantLock(true);
private static final boolean[] m_filterAllocated = new boolean[3];
}

0 comments on commit e0dd41c

Please sign in to comment.