Skip to content

Commit

Permalink
formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
narmstro2020 committed Dec 21, 2024
1 parent 7fe25fa commit 8245f7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wpilibc/src/main/native/cpp/Solenoid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ void Solenoid::SetOff() {
}

void Solenoid::Toggle() {
Set(!Get());
Set(!IsOn());
}

int Solenoid::GetChannel() const {
Expand All @@ -96,6 +96,6 @@ void Solenoid::InitSendable(wpi::SendableBuilder& builder) {
builder.SetActuator(true);
builder.SetSafeState([=, this] { Set(false); });
builder.AddBooleanProperty(
"Value", [=, this] { return Get(); },
"Value", [=, this] { return IsOn(); },
[=, this](bool value) { Set(value); });
}

0 comments on commit 8245f7b

Please sign in to comment.