Skip to content

Commit

Permalink
create and use standard is paused method
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelLesirge committed Dec 19, 2024
1 parent 6622e99 commit da7dfde
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ public String getStatusString() {
return String.format(
"Stopped till %.2f PSI (Start threshold)", controller.getLowerThreshold());
}
if (this.paused) {
if (isPaused()) {
return getCurrentCommand().getName();
}
return "Idle";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ public void unpause() {
this.paused = false;
}

public boolean isPaused() {
return this.paused;
}

// --- Status String ---

public String getStatusString() {
Expand All @@ -138,7 +142,7 @@ public String getStatusString() {
return String.format(
"Stopped till %.2f PSI (Start threshold)", controller.getLowerThreshold());
}
if (this.paused) {
if (isPaused()) {
return getCurrentCommand().getName();
}
return "Idle";
Expand Down

0 comments on commit da7dfde

Please sign in to comment.