Skip to content

Commit

Permalink
added derprecation to Java Solenoid get method
Browse files Browse the repository at this point in the history
  • Loading branch information
narmstro2020 committed Dec 24, 2024
1 parent 88e6c11 commit aeacdf6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wpilibj/src/main/java/edu/wpi/first/wpilibj/Solenoid.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ public void set(boolean on) {
* Read the current value of the solenoid.
*
* @return True if the solenoid output is on or false if the solenoid output is off.
* @deprecated Use isOn or isOff instead
*/
@Deprecated
public boolean get() {
int currentAll = m_module.getSolenoids();
return (currentAll & m_mask) != 0;
Expand Down

0 comments on commit aeacdf6

Please sign in to comment.